[Libreoffice-commits] core.git: sw/source
Jan-Marek Glogowski
glogow at fbihome.de
Wed Sep 21 12:32:25 UTC 2016
sw/source/ui/misc/bookmark.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit adfb650bec005a46c2192852a8f5801497a19611
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Wed Sep 21 11:56:10 2016 +0200
tdf#101359 handle less bookmarks then expected
Change-Id: Iaa4a54aecbe894296609f462db451c2ed94b1213
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index fdf0262..0bf9fca 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -255,6 +255,7 @@ bool SwInsertBookmarkDlg::HaveBookmarksChanged()
{
if (IDocumentMarkAccess::MarkType::BOOKMARK == IDocumentMarkAccess::GetType(**ppBookmark))
{
+ // more bookmarks then expected
if (aListIter == aTableBookmarks.end())
return true;
if (aListIter->first != ppBookmark->get() ||
@@ -263,6 +264,9 @@ bool SwInsertBookmarkDlg::HaveBookmarksChanged()
++aListIter;
}
}
+ // less bookmarks then expected
+ if (aListIter != aTableBookmarks.end())
+ return true;
return false;
}
More information about the Libreoffice-commits
mailing list