[Libreoffice-commits] core.git: sw/source
Michael Stahl
Michael.Stahl at cib.de
Wed May 23 15:19:38 UTC 2018
sw/source/core/text/itratr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e9d958653e0ac4ff275dd70ec878cc3d529d49db
Author: Michael Stahl <Michael.Stahl at cib.de>
Date: Wed May 23 13:17:16 2018 +0200
sw: fix max->min in SwTextNode::GetScalingOfSelectedText()
(regression from b1ac01de06262bda39be7f970fbceeda9b267fe4)
Change-Id: Ic2e835f19aaa4e9b26741c409515fc8d26cab1d3
Reviewed-on: https://gerrit.libreoffice.org/54707
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
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;
More information about the Libreoffice-commits
mailing list