From 7d8e94444d989d0ac4a4055b207726708e9ec0da Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Jan 2018 08:47:15 +0200 Subject: convert ab?b:a Reviewed-on: https://gerrit.libreoffice.org/47736 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/visitors.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath/source/visitors.cxx') diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index a9d090251368..004c153bfdc4 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -674,7 +674,7 @@ void SmSetSelectionVisitor::Visit( SmTextNode* pNode ) { long start, end; pNode->SetSelected(true); if( i1 != -1 && i2 != -1 ) { - start = i1 < i2 ? i1 : i2; //MIN + start = std::min(i1, i2); end = std::max(i1, i2); } else if( mbSelecting && i1 != -1 ) { start = 0; -- cgit