summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 2d08a3941ac9..254aef92d8d3 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -796,13 +796,10 @@ void SwPostItMgr::LayoutPostIts()
}
}
- if ((!aVisiblePostItList.empty()) && ShowNotes())
+ if (!aVisiblePostItList.empty() && ShowNotes())
{
bool bOldScrollbar = pPage->bScrollbar;
- if (ShowNotes())
- pPage->bScrollbar = LayoutByPage(aVisiblePostItList, pPage->mPageRect.SVRect(), lNeededHeight);
- else
- pPage->bScrollbar = false;
+ pPage->bScrollbar = LayoutByPage(aVisiblePostItList, pPage->mPageRect.SVRect(), lNeededHeight);
if (!pPage->bScrollbar)
{
pPage->lOffset = 0;