summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-11-19 15:25:03 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-21 06:17:57 +0000
commitbbe19c1312500c63748583eb2e64f5cd1190942c (patch)
tree8c9e6ad653740d5d1ed5feae63cb4262f47c34fc /sw/source/uibase/uno/unotxdoc.cxx
parent9be04c6cc69b423727038e95a43afd3ad03c22d5 (diff)
tdf#104023 - fix wrong boolean logic for RedlineFlags
commit 847e004e65ec3c35acff607588d15cd75a84f121 convert nsRedlineMode_t to typed_flags ...introduced some logical equivalency errors. A few static redline functions utilize the correct logic, so use them to simplify the code readability. Change-Id: I4f5715b71dd4c8f2a6cea0c816637b1784892c0d Reviewed-on: https://gerrit.libreoffice.org/30974 Reviewed-by: Justin Luth <justin_luth@sil.org> Tested-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx3
1 files changed, 1 insertions, 2 deletions
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)
{