Fixed null pointer derefence bug
This commit is contained in:
@@ -212,7 +212,7 @@ bool NodeTrackerManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter&
|
||||
if (ea.getButtonMask()==0)
|
||||
{
|
||||
|
||||
double timeSinceLastRecordEvent = ea.getTime() - _ga_t0->getTime();
|
||||
double timeSinceLastRecordEvent = _ga_t0.valid() ? (ea.getTime() - _ga_t0->getTime()) : DBL_MAX;
|
||||
if (timeSinceLastRecordEvent>0.02) addMouseEvent(ea);
|
||||
|
||||
if (isMouseMoving())
|
||||
|
||||
@@ -107,7 +107,7 @@ bool TrackballManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us
|
||||
if (ea.getButtonMask()==0)
|
||||
{
|
||||
|
||||
double timeSinceLastRecordEvent = ea.getTime() - _ga_t0->getTime();
|
||||
double timeSinceLastRecordEvent = _ga_t0.valid() ? (ea.getTime() - _ga_t0->getTime()) : DBL_MAX;
|
||||
if (timeSinceLastRecordEvent>0.02) addMouseEvent(ea);
|
||||
|
||||
if (isMouseMoving())
|
||||
|
||||
Reference in New Issue
Block a user