summaryrefslogtreecommitdiff
path: root/svtools/source/control/scriptedtext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/scriptedtext.cxx')
-rw-r--r--svtools/source/control/scriptedtext.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx
index 16b90aedd764..9b3eb3e95749 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -138,11 +138,11 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
// calculate maximum font height
SetOutDevFont( i18n::ScriptType::LATIN );
- maTextSize.setHeight( std::max( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
+ maTextSize.setHeight( std::max<sal_Int32>( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
SetOutDevFont( i18n::ScriptType::ASIAN );
- maTextSize.setHeight( std::max( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
+ maTextSize.setHeight( std::max<sal_Int32>( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
SetOutDevFont( i18n::ScriptType::COMPLEX );
- maTextSize.setHeight( std::max( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
+ maTextSize.setHeight( std::max<sal_Int32>( maTextSize.Height(), mrOutDevice.GetTextHeight() ) );
mrOutDevice.Pop();
}