summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-23 13:17:16 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-05-23 17:19:16 +0200
commite9d958653e0ac4ff275dd70ec878cc3d529d49db (patch)
tree76c7867ecdfca3c6c755960e0e78f877a3ae01ab
parent933c1a048bc11d3582d8cbd8fa1ed3efea4b0262 (diff)
sw: fix max->min in SwTextNode::GetScalingOfSelectedText()
(regression from b1ac01de06262bda39be7f970fbceeda9b267fe4) Change-Id: Ic2e835f19aaa4e9b26741c409515fc8d26cab1d3 Reviewed-on: https://gerrit.libreoffice.org/54707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r--sw/source/core/text/itratr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx
index 060ba0d32b75..d9a9f729c9cc 100644
--- a/sw/source/core/text/itratr.cxx
+++ b/sw/source/core/text/itratr.cxx
@@ -846,7 +846,7 @@ sal_uInt16 SwTextNode::GetScalingOfSelectedText( sal_Int32 nStt, sal_Int32 nEnd
aIter.SeekAndChgAttrIter( nIdx, pOut );
// scan for end of portion
- const sal_Int32 nNextChg = std::max(aIter.GetNextAttr(), aScriptInfo.NextScriptChg( nIdx ));
+ const sal_Int32 nNextChg = std::min(aIter.GetNextAttr(), aScriptInfo.NextScriptChg(nIdx));
sal_Int32 nStop = nIdx;
sal_Unicode cChar = CH_BLANK;