diff --git a/rtgui/perspective.cc b/rtgui/perspective.cc index bffc2f301..cf366a766 100644 --- a/rtgui/perspective.cc +++ b/rtgui/perspective.cc @@ -925,8 +925,7 @@ bool ControlLineManager::drag1(int modifierKey) control_line->line->end = control_line->end->center; control_line->end->state = Geometry::DRAGGED; break; - case (1): - case (2): { // line + case (1): { // line // Constrain delta so the end stays above the image. Coord new_delta = control_line->end->center + delta; new_delta.clip(iw, ih); diff --git a/rtgui/perspective.h b/rtgui/perspective.h index 8ddc2c1b7..89a743a50 100644 --- a/rtgui/perspective.h +++ b/rtgui/perspective.h @@ -25,7 +25,6 @@ #include "editwidgets.h" #include "lensgeomlistener.h" #include "toolpanel.h" -#include "../rtengine/coord.h" #include "../rtengine/perspectivecorrection.h" struct ControlLine