diff options
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index c4edfba5a5b0..1244316e310c 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -2782,7 +2782,7 @@ void SwTabFramePainter::Insert( SwLineEntry& rNew, bool bHori ) const svx::frame::Style& rOldAttr = rOld.maAttribute; const svx::frame::Style& rNewAttr = rNew.maAttribute; - const svx::frame::Style& rCmpAttr = rNewAttr > rOldAttr ? rNewAttr : rOldAttr; + const svx::frame::Style& rCmpAttr = std::max(rNewAttr, rOldAttr); if ( SwLineEntry::OVERLAP1 == nOverlapType ) { |