diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-20 14:08:36 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-20 14:09:49 +0100 |
commit | 5f75082ef17c713a9e41a05d222fe9dda9c3136e (patch) | |
tree | 217ac3e24691380d3f1932eaffdc8ce6f9dcdeb2 /sw/source/ui/docvw/PostItMgr.cxx | |
parent | 53f23ca68dda1011f97bb28d672c7198e9e12c90 (diff) |
incorrect if/for body alignment
I checked history of all the questionable ones, and the itrform2.cxx
one was a genuine error.
Change-Id: Ibfcd8732ba4a66a8c038940ae10f8b27fee466c9
Diffstat (limited to 'sw/source/ui/docvw/PostItMgr.cxx')
-rw-r--r-- | sw/source/ui/docvw/PostItMgr.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx index 83b1cc9b278d..90c369cb0830 100644 --- a/sw/source/ui/docvw/PostItMgr.cxx +++ b/sw/source/ui/docvw/PostItMgr.cxx @@ -523,8 +523,7 @@ void SwPostItMgr::PreparePageContainer() for (int i=0; i<lPageSize - lContainerSize;i++) mPages.push_back( new SwPostItPageItem()); } - else - if (lContainerSize > lPageSize) + else if (lContainerSize > lPageSize) { for (int i=mPages.size()-1; i >= lPageSize;--i) { @@ -1470,8 +1469,7 @@ bool SwPostItMgr::ScrollbarHit(const unsigned long aPage,const Point &aPoint) Scroll( -1*GetScrollSize(), aPage); return true; } - else - if (aRectTop.IsInside(aPoint)) + else if (aRectTop.IsInside(aPoint)) { if (aPoint.X() < long((aPointTop.X() + GetSidebarWidth()/3*2))) Scroll(GetScrollSize(), aPage); |