Fix line debug tool showing up when placing stamps

This commit is contained in:
Tamás Bálint Misius 2023-12-12 08:41:53 +01:00
parent ef86110516
commit d4784b2516
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -171,7 +171,7 @@ public:
//all of these are only here for one debug lines //all of these are only here for one debug lines
bool GetMouseDown() { return isMouseDown; } bool GetMouseDown() { return isMouseDown; }
bool GetDrawingLine() { return drawMode == DrawLine && isMouseDown; } bool GetDrawingLine() { return drawMode == DrawLine && isMouseDown && selectMode == SelectNone; }
bool GetDrawSnap() { return drawSnap; } bool GetDrawSnap() { return drawSnap; }
ui::Point GetLineStartCoords() { return drawPoint1; } ui::Point GetLineStartCoords() { return drawPoint1; }
ui::Point GetLineFinishCoords() { return currentMouse; } ui::Point GetLineFinishCoords() { return currentMouse; }