summaryrefslogtreecommitdiff
path: root/sw/source/core
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/core
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/core')
-rw-r--r--sw/source/core/edit/edredln.cxx3
1 files changed, 1 insertions, 2 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();