diff options
Diffstat (limited to 'editeng/source/uno/unoedhlp.cxx')
-rw-r--r-- | editeng/source/uno/unoedhlp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx index ee34063b5a67..3c86fddc35dc 100644 --- a/editeng/source/uno/unoedhlp.cxx +++ b/editeng/source/uno/unoedhlp.cxx @@ -165,7 +165,7 @@ bool SvxEditSourceHelper::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nE nClosestEndIndex_s = nCurrIndex; } } - sal_Int32 nClosestEndIndex = nClosestEndIndex_s < nClosestEndIndex_e ? nClosestEndIndex_s : nClosestEndIndex_e; + sal_Int32 nClosestEndIndex = std::min(nClosestEndIndex_s, nClosestEndIndex_e); nStartIndex = nClosestStartIndex; nEndIndex = nClosestEndIndex; |