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