From abf286e99048ac49f437569958c1c86c2203c7e0 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 10 Jul 2011 14:44:41 +0000 Subject: [PATCH] (svn r22649) -Fix [FS#4670]: Switching from a red to a white highlight (by switching to another tool) without switching the highlight mode (HT_RECT etc.) did not mark the selection dirty. --- src/viewport.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viewport.cpp b/src/viewport.cpp index 1360064f59..16e6bb0b5e 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2859,6 +2859,9 @@ void SetObjectToPlace(CursorID icon, PaletteID pal, HighLightStyle mode, WindowC if (w != NULL) w->OnPlaceObjectAbort(); } + /* Mark the old selection dirty, in case the selection shape or colour changes */ + if ((_thd.drawstyle & HT_DRAG_MASK) != HT_NONE) SetSelectionTilesDirty(); + SetTileSelectSize(1, 1); _thd.make_square_red = false;