summaryrefslogtreecommitdiffstats
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx2
-rw-r--r--sdext/source/presenter/PresenterTextView.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index bd156861c44f..9be3b86776e2 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -185,7 +185,7 @@ void PresenterScrollBar::SetThumbPosition (
{
nPosition = ValidateThumbPosition(nPosition);
- if (!(nPosition != mnThumbPosition && ! mbIsNotificationActive))
+ if (nPosition == mnThumbPosition || mbIsNotificationActive)
return;
mnThumbPosition = nPosition;
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx
index 4feb8d92ad21..eb995dd935b3 100644
--- a/sdext/source/presenter/PresenterTextView.cxx
+++ b/sdext/source/presenter/PresenterTextView.cxx
@@ -1096,8 +1096,8 @@ void PresenterTextCaret::SetPosition (
const sal_Int32 nParagraphIndex,
const sal_Int32 nCharacterIndex)
{
- if (!(mnParagraphIndex != nParagraphIndex
- || mnCharacterIndex != nCharacterIndex))
+ if (mnParagraphIndex == nParagraphIndex
+ && mnCharacterIndex == nCharacterIndex)
return;
if (mnParagraphIndex >= 0)