0000942: Crash when 2xdouble-click on part

This commit is contained in:
wmayer 2013-01-05 11:26:16 +01:00
parent 9eb4174315
commit 49f66c5fba

View File

@ -291,7 +291,10 @@ void ViewProviderGeometryObject::unsetEdit(int ModNum)
SoCenterballManip * manip = static_cast<SoCenterballManip*>(path->getTail()); SoCenterballManip * manip = static_cast<SoCenterballManip*>(path->getTail());
SoNodeSensor* sensor = reinterpret_cast<SoNodeSensor*>(manip->getUserData()); SoNodeSensor* sensor = reinterpret_cast<SoNodeSensor*>(manip->getUserData());
// #0000939: Pressing Escape while pivoting a box crashes // #0000939: Pressing Escape while pivoting a box crashes
manip->getDragger()->grabEventsCleanup(); // #0000942: Crash when 2xdouble-click on part
SoDragger* dragger = manip->getDragger();
if (dragger && dragger->getHandleEventAction())
dragger->grabEventsCleanup();
// detach sensor // detach sensor
sensor->detach(); sensor->detach();