From kde-commits Thu Mar 24 10:58:39 2016 From: Sven Langkamp Date: Thu, 24 Mar 2016 10:58:39 +0000 To: kde-commits Subject: [krita] libs/ui: Better way to unset the erase mode. This correctly updates the brush size if the er Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=145881712909615 Git commit 6752dbe794afb8effba426e5c376b7eb79976ef0 by Sven Langkamp. Committed on 24/03/2016 at 10:58. Pushed by langkamp into branch 'master'. Better way to unset the erase mode. This correctly updates the brush size i= f the eraser brush size option is enabled BUG:350628 M +1 -1 libs/ui/kis_paintop_box.cc http://commits.kde.org/krita/6752dbe794afb8effba426e5c376b7eb79976ef0 diff --git a/libs/ui/kis_paintop_box.cc b/libs/ui/kis_paintop_box.cc index f144e69..35599a3 100644 --- a/libs/ui/kis_paintop_box.cc +++ b/libs/ui/kis_paintop_box.cc @@ -1048,7 +1048,7 @@ void KisPaintopBox::slotSwitchToPreviousPreset() void KisPaintopBox::slotUnsetEraseMode() { if (m_currCompositeOpID =3D=3D COMPOSITE_ERASE) { - updateCompositeOp(m_prevCompositeOpID); + slotToggleEraseMode(false); } } =20