summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterScrollBar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterScrollBar.cxx')
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx29
1 files changed, 10 insertions, 19 deletions
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index ead527a0a0ea..8cba1bcafa01 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -194,7 +194,16 @@ void PresenterScrollBar::SetThumbPosition (
UpdateBorders();
Repaint(GetRectangle(Total), bAsynchronousUpdate);
- NotifyThumbPositionChange();
+
+ mbIsNotificationActive = true;
+ try
+ {
+ maThumbMotionListener(mnThumbPosition);
+ }
+ catch (Exception&)
+ {
+ }
+ mbIsNotificationActive = false;
}
}
@@ -523,24 +532,6 @@ void PresenterScrollBar::PaintBitmap(
}
}
-void PresenterScrollBar::NotifyThumbPositionChange()
-{
- if ( ! mbIsNotificationActive)
- {
- mbIsNotificationActive = true;
-
- try
- {
- maThumbMotionListener(mnThumbPosition);
- }
- catch (Exception&)
- {
- }
-
- mbIsNotificationActive = false;
- }
-}
-
PresenterScrollBar::Area PresenterScrollBar::GetArea (const double nX, const double nY) const
{
const geometry::RealPoint2D aPoint(nX, nY);