Refactor rtgui/spot.cc
This commit is contained in:
@@ -208,14 +208,14 @@ void Spot::releaseEdit()
|
|||||||
{
|
{
|
||||||
Geometry *loGeom = getVisibleGeometryFromMO (lastObject);
|
Geometry *loGeom = getVisibleGeometryFromMO (lastObject);
|
||||||
|
|
||||||
if (!loGeom) {
|
|
||||||
EditSubscriber::action = EditSubscriber::Action::NONE;
|
EditSubscriber::action = EditSubscriber::Action::NONE;
|
||||||
|
|
||||||
|
if (!loGeom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
loGeom->state = Geometry::NORMAL;
|
loGeom->state = Geometry::NORMAL;
|
||||||
sourceIcon.state = Geometry::NORMAL;
|
sourceIcon.state = Geometry::NORMAL;
|
||||||
EditSubscriber::action = EditSubscriber::Action::NONE;
|
|
||||||
draggedSide = DraggedSide::NONE;
|
draggedSide = DraggedSide::NONE;
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
}
|
}
|
||||||
@@ -686,8 +686,6 @@ bool Spot::button3Released()
|
|||||||
updateGeometry();
|
updateGeometry();
|
||||||
EditSubscriber::action = EditSubscriber::Action::NONE;
|
EditSubscriber::action = EditSubscriber::Action::NONE;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Spot::drag1 (int modifierKey)
|
bool Spot::drag1 (int modifierKey)
|
||||||
|
Reference in New Issue
Block a user