Hi, I have submitted a patch for review:
https://gerrit.libreoffice.org/3757 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/57/3757/1 SwPostItMgr::Delete: fix crash when layout is not yet ready pPostIt is 0 when we have a large document, and the layout is not yet ready for a later part of the document, having a comment. Just don't try to delete such comments, better than a crash. (cherry picked from commit 9a7641451dad5c73a936de5361aa3c3f148132d0) Change-Id: I5fd5c908bc7b1feba926214863e84391b9037484 --- M sw/source/ui/docvw/PostItMgr.cxx 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx index 7f67fb0..4a37c00 100644 --- a/sw/source/ui/docvw/PostItMgr.cxx +++ b/sw/source/ui/docvw/PostItMgr.cxx @@ -1169,7 +1169,7 @@ aTmp.reserve( mvPostItFlds.size() ); for(std::list<SwSidebarItem*>::iterator pPostIt = mvPostItFlds.begin(); pPostIt!= mvPostItFlds.end() ; ++pPostIt) { - if ((*pPostIt)->GetFmtFld() && ((*pPostIt)->pPostIt->GetAuthor() == aAuthor) ) + if ((*pPostIt)->GetFmtFld() && (*pPostIt)->pPostIt && ((*pPostIt)->pPostIt->GetAuthor() == aAuthor) ) aTmp.push_back( (*pPostIt)->GetFmtFld() ); } for(std::vector<SwFmtFld*>::iterator i = aTmp.begin(); i!= aTmp.end() ; ++i) -- To view, visit https://gerrit.libreoffice.org/3757 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5fd5c908bc7b1feba926214863e84391b9037484 Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: libreoffice-4-0 Gerrit-Owner: Miklos Vajna <vmik...@suse.cz> _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice