From d4784b2516e7fb5b84f6cb7582c94f5c4b93ead0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 12 Dec 2023 08:41:53 +0100 Subject: [PATCH] Fix line debug tool showing up when placing stamps --- src/gui/game/GameView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameView.h b/src/gui/game/GameView.h index 95d193cc7..a7fd8c8ef 100644 --- a/src/gui/game/GameView.h +++ b/src/gui/game/GameView.h @@ -171,7 +171,7 @@ public: //all of these are only here for one debug lines bool GetMouseDown() { return isMouseDown; } - bool GetDrawingLine() { return drawMode == DrawLine && isMouseDown; } + bool GetDrawingLine() { return drawMode == DrawLine && isMouseDown && selectMode == SelectNone; } bool GetDrawSnap() { return drawSnap; } ui::Point GetLineStartCoords() { return drawPoint1; } ui::Point GetLineFinishCoords() { return currentMouse; }