diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 2e67fc07aa2e..6b2f3e4c567c 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -1524,7 +1524,7 @@ void SwPostItMgr::Delete(sal_uInt32 nPostItId) IsPostitFieldWithPostitId aFilter(nPostItId); FieldDocWatchingStack aStack(mvPostItFields, *mpView->GetDocShell(), aFilter); const SwFormatField* pField = aStack.pop(); - if (mpWrtShell->GotoField(*pField)) + if (pField && mpWrtShell->GotoField(*pField)) mpWrtShell->DelRight(); mpWrtShell->EndUndo(); PrepareView(); |