summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-09-04 16:30:56 +0200
committerLászló Németh <laszlo.nemeth@collabora.com>2015-09-04 16:32:36 +0200
commit072c771be40f7f07ff31497049c1a15dd2f05178 (patch)
tree4f4fb2daab6e5976681c25b325ba0bfe89191c3b /svx/source/stbctrls
parent75f890a7859148e6638b08eeb97a564bed606cad (diff)
tdf#92843: fix disappearing zoom slider
Change-Id: I2b45b7cf96af7950cf097c2b6a880e9eda021184
Diffstat (limited to 'svx/source/stbctrls')
-rw-r--r--svx/source/stbctrls/zoomsliderctrl.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx
index aa78ada2ffc7..d6b394933895 100644
--- a/svx/source/stbctrls/zoomsliderctrl.cxx
+++ b/svx/source/stbctrls/zoomsliderctrl.cxx
@@ -44,7 +44,6 @@ struct SvxZoomSliderControl::SvxZoomSliderControl_Impl
Image maIncreaseButton;
Image maDecreaseButton;
bool mbValuesSet;
- bool mbOmitPaint;
bool mbDraggingStarted;
SvxZoomSliderControl_Impl() :
@@ -58,7 +57,6 @@ struct SvxZoomSliderControl::SvxZoomSliderControl_Impl
maIncreaseButton(),
maDecreaseButton(),
mbValuesSet( false ),
- mbOmitPaint( false ),
mbDraggingStarted( false ) {}
};
@@ -242,13 +240,12 @@ void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eStat
}
}
- if (!mxImpl->mbOmitPaint)
- forceRepaint();
+ forceRepaint();
}
void SvxZoomSliderControl::Paint( const UserDrawEvent& rUsrEvt )
{
- if ( !mxImpl->mbValuesSet || mxImpl->mbOmitPaint )
+ if ( !mxImpl->mbValuesSet )
return;
const Rectangle aControlRect = getControlRect();
@@ -408,9 +405,6 @@ void SvxZoomSliderControl::repaintAndExecute()
{
forceRepaint();
- mxImpl->mbOmitPaint = true; // optimization: paint before executing command,
- // then omit painting which is triggered by the execute function
-
// commit state change
SvxZoomSliderItem aZoomSliderItem(mxImpl->mnCurrentZoom);
@@ -422,8 +416,6 @@ void SvxZoomSliderControl::repaintAndExecute()
aArgs[0].Value = any;
execute(aArgs);
-
- mxImpl->mbOmitPaint = false;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */