sw/source/ui/misc/bookmark.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit adfb650bec005a46c2192852a8f5801497a19611 Author: Jan-Marek Glogowski <glo...@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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits