From a3e77a657ad7c8d83bab0ba4a9cac71a65c6b03a Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 17 Dec 2015 15:21:44 -0300 Subject: [PATCH] Update context bar controls correctly when a new brush type is selected from a brush slot --- src/app/ui/context_bar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp index 741e43a8e..5a63ca479 100644 --- a/src/app/ui/context_bar.cpp +++ b/src/app/ui/context_bar.cpp @@ -1627,8 +1627,6 @@ void ContextBar::setActiveBrushBySlot(int slot) setActiveBrush(brush.brush()); } else { - setActiveBrush(ContextBar::createBrushFromPreferences()); - if (brush.hasFlag(BrushSlot::Flags::BrushType)) brushPref.type(static_cast(brush.brush()->type())); @@ -1637,6 +1635,8 @@ void ContextBar::setActiveBrushBySlot(int slot) if (brush.hasFlag(BrushSlot::Flags::BrushAngle)) brushPref.angle(brush.brush()->angle()); + + setActiveBrush(ContextBar::createBrushFromPreferences()); } }