Remove unneeded code
This commit is contained in:
@@ -925,8 +925,7 @@ bool ControlLineManager::drag1(int modifierKey)
|
|||||||
control_line->line->end = control_line->end->center;
|
control_line->line->end = control_line->end->center;
|
||||||
control_line->end->state = Geometry::DRAGGED;
|
control_line->end->state = Geometry::DRAGGED;
|
||||||
break;
|
break;
|
||||||
case (1):
|
case (1): { // line
|
||||||
case (2): { // line
|
|
||||||
// Constrain delta so the end stays above the image.
|
// Constrain delta so the end stays above the image.
|
||||||
Coord new_delta = control_line->end->center + delta;
|
Coord new_delta = control_line->end->center + delta;
|
||||||
new_delta.clip(iw, ih);
|
new_delta.clip(iw, ih);
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#include "editwidgets.h"
|
#include "editwidgets.h"
|
||||||
#include "lensgeomlistener.h"
|
#include "lensgeomlistener.h"
|
||||||
#include "toolpanel.h"
|
#include "toolpanel.h"
|
||||||
#include "../rtengine/coord.h"
|
|
||||||
#include "../rtengine/perspectivecorrection.h"
|
#include "../rtengine/perspectivecorrection.h"
|
||||||
|
|
||||||
struct ControlLine
|
struct ControlLine
|
||||||
|
Reference in New Issue
Block a user