diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-09-21 11:56:10 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-09-21 14:21:52 +0200 |
commit | adfb650bec005a46c2192852a8f5801497a19611 (patch) | |
tree | b1204f164b0f7debcf9f95a3b5d0fa3288553ed1 | |
parent | f610982ea6210a20b497d17078d6f67d9d6a554b (diff) |
tdf#101359 handle less bookmarks then expected
Change-Id: Iaa4a54aecbe894296609f462db451c2ed94b1213
-rw-r--r-- | sw/source/ui/misc/bookmark.cxx | 4 |
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; } |