diff options
-rw-r--r-- | sw/source/core/edit/edredln.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewstat.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/edit/edredln.cxx b/sw/source/core/edit/edredln.cxx index 8df2d5f17e1f..d63f3ac26f96 100644 --- a/sw/source/core/edit/edredln.cxx +++ b/sw/source/core/edit/edredln.cxx @@ -125,8 +125,7 @@ const SwRangeRedline* SwEditShell::GetCurrRedline() const void SwEditShell::UpdateRedlineAttr() { - if( ( RedlineFlags::ShowInsert | RedlineFlags::ShowDelete ) == - ( RedlineFlags::ShowMask & GetDoc()->getIDocumentRedlineAccess().GetRedlineFlags() )) + if( IDocumentRedlineAccess::IsShowChanges(GetDoc()->getIDocumentRedlineAccess().GetRedlineFlags()) ) { SET_CURR_SHELL( this ); StartAllAction(); diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index 3f01b803d667..95b1688b209d 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -267,8 +267,7 @@ void SwView::GetState(SfxItemSet &rSet) break; case FN_REDLINE_SHOW: { - RedlineFlags nMask = RedlineFlags::ShowInsert | RedlineFlags::ShowDelete; - rSet.Put( SfxBoolItem( nWhich, bool(m_pWrtShell->GetRedlineFlags() & nMask) )); + rSet.Put( SfxBoolItem( nWhich, IDocumentRedlineAccess::IsShowChanges(m_pWrtShell->GetRedlineFlags()) )); } break; case SID_AVMEDIA_PLAYER : diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 8513b0a3fed0..8ea5fdffd545 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -2031,8 +2031,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName) bool bSet = false; if(WID_DOC_CHANGES_SHOW == pEntry->nWID) { - const RedlineFlags nMask = RedlineFlags::ShowInsert | RedlineFlags::ShowDelete; - bSet = bool(eMode & nMask); + bSet = IDocumentRedlineAccess::IsShowChanges(eMode); } else if(WID_DOC_CHANGES_RECORD == pEntry->nWID) { |