summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-21 11:56:10 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2016-09-21 14:21:52 +0200
commitadfb650bec005a46c2192852a8f5801497a19611 (patch)
treeb1204f164b0f7debcf9f95a3b5d0fa3288553ed1 /sw/source/ui
parentf610982ea6210a20b497d17078d6f67d9d6a554b (diff)
tdf#101359 handle less bookmarks then expected
Change-Id: Iaa4a54aecbe894296609f462db451c2ed94b1213
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/misc/bookmark.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index fdf0262f2307..0bf9fca7c36a 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;
}