diff options
Diffstat (limited to 'sw/source/core/uibase/docvw/AnnotationWin.cxx')
-rw-r--r-- | sw/source/core/uibase/docvw/AnnotationWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/uibase/docvw/AnnotationWin.cxx b/sw/source/core/uibase/docvw/AnnotationWin.cxx index 4d8215efd400..9ef1e482bae0 100644 --- a/sw/source/core/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/core/uibase/docvw/AnnotationWin.cxx @@ -78,7 +78,7 @@ void SwAnnotationWin::SetPostItText() //If the cursor was visible, then make it visible again after //changing text, e.g. fdo#33599 Cursor *pCursor = GetOutlinerView()->GetEditView().GetCursor(); - bool bCursorVisible = pCursor ? pCursor->IsVisible() : false; + bool bCursorVisible = pCursor && pCursor->IsVisible(); //If the new text is the same as the old text, keep the same insertion //point .e.g. fdo#33599 @@ -295,7 +295,7 @@ bool SwAnnotationWin::IsProtected() { return SwSidebarWin::IsProtected() || GetLayoutStatus() == SwPostItHelper::DELETED || - ( mpFmtFld ? mpFmtFld->IsProtect() : false ); + ( mpFmtFld && mpFmtFld->IsProtect() ); } OUString SwAnnotationWin::GetAuthor() |