summaryrefslogtreecommitdiff
path: root/sw/source/core/text/frmpaint.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-07 13:10:40 +0200
committerNoel Grandin <noel@peralex.com>2016-09-08 09:23:40 +0200
commit847e004e65ec3c35acff607588d15cd75a84f121 (patch)
tree1b2ac62948c9ad15d2f231b56eb45ff341f572f7 /sw/source/core/text/frmpaint.cxx
parent3cac15856ade9fce161a49212c9d1861741122a5 (diff)
convert nsRedlineMode_t to typed_flags
including fixing a bug in SwXMLExport::exportDoc where it was ORing with a constant from a different type: nsRedlineType_t::REDLINE_INSERT Change-Id: I2bb154c9a35d106e64fd1a8b6e928d0384c9fafe
Diffstat (limited to 'sw/source/core/text/frmpaint.cxx')
-rw-r--r--sw/source/core/text/frmpaint.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index bbbe0fa6478c..ef8e22fd8f23 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -295,7 +295,7 @@ void SwTextFrame::PaintExtraData( const SwRect &rRect ) const
bool bLineNum = !IsInTab() && rLineInf.IsPaintLineNumbers() &&
( !IsInFly() || rLineInf.IsCountInFlys() ) && rLineNum.IsCount();
sal_Int16 eHor = (sal_Int16)SW_MOD()->GetRedlineMarkPos();
- if( eHor != text::HoriOrientation::NONE && !IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineMode() ) )
+ if( eHor != text::HoriOrientation::NONE && !IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineFlags() ) )
eHor = text::HoriOrientation::NONE;
bool bRedLine = eHor != text::HoriOrientation::NONE;
if ( bLineNum || bRedLine )
@@ -483,7 +483,7 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
}
const IDocumentRedlineAccess& rIDRA = rTextNode.getIDocumentRedlineAccess();
- if( IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineMode() ) )
+ if( IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineFlags() ) )
{
const sal_uInt16 nRedlPos = rIDRA.GetRedlinePos( rTextNode, USHRT_MAX );
if( USHRT_MAX != nRedlPos )