[Libreoffice-commits] core.git: sw/source
Mike Kaganski
mike.kaganski at collabora.com
Sat Nov 18 10:47:37 UTC 2017
sw/source/uibase/docvw/PostItMgr.cxx | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
New commits:
commit 06ff3f82d50b81c9bfda576b3199edf21dbf1efd
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Sat Nov 18 10:23:25 2017 +0200
Remove redundant check
Change-Id: If925aef0109a023d5760a7f83ab570a1f0312cb6
Reviewed-on: https://gerrit.libreoffice.org/44903
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 145659405482..7a90231b0eef 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -1069,15 +1069,12 @@ void SwPostItMgr::MakeVisible(const SwAnnotationWin* pPostIt )
std::vector<SwPostItPageItem*>::size_type n=0;
for (auto const& page : mPages)
{
- if (page->mList->size()>0)
+ for (auto const& item : *page->mList)
{
- for (auto const& item : *page->mList)
+ if (item->pPostIt==pPostIt)
{
- if (item->pPostIt==pPostIt)
- {
- aPage = n+1;
- break;
- }
+ aPage = n+1;
+ break;
}
}
++n;
More information about the Libreoffice-commits
mailing list