From 32999a71bc5dcec8790eb0dce0626a9cb0f1b950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20R=C3=BCdiger?= Date: Sun, 8 Aug 2021 12:46:55 +0200 Subject: [PATCH] Fix color switching on empty palette space click --- src/app/ui/palette_view.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/ui/palette_view.cpp b/src/app/ui/palette_view.cpp index 1c3f6946f..a049dcf3e 100644 --- a/src/app/ui/palette_view.cpp +++ b/src/app/ui/palette_view.cpp @@ -333,6 +333,11 @@ bool PaletteView::onProcessMessage(Message* msg) break; } + if(m_hot.color >= currentPalette()->size()){ + deselect(); + break; + } + captureMouse(); // Continue...