summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/text.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-04-16 22:38:45 +0200
committerMichael Stahl <mstahl@redhat.com>2015-04-16 22:39:02 +0200
commitb9262e415c6deabc403df51230929649e0511e62 (patch)
treebf31e7f275f62adf067e40a7ffc0a85fad62477a /vcl/source/outdev/text.cxx
parentc6ec3e4cee8c7c22380780f2661ac23946cdb050 (diff)
overloading is hard to resolve for poor old c++
Change-Id: I76ae48783942a558c674c5dcb2869540a819bf49
Diffstat (limited to 'vcl/source/outdev/text.cxx')
-rw-r--r--vcl/source/outdev/text.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index c9c9be0c90f0..eb7104d06215 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -2023,7 +2023,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
{
OUStringBuffer aTmpStr( aStr );
// speed it up by removing all but 1.33x as many as the break pos.
- sal_Int32 nEraseChars = std::max(4, aStr.getLength() - (nIndex*4)/3);
+ sal_Int32 nEraseChars = std::max<sal_Int32>(4, aStr.getLength() - (nIndex*4)/3);
while( nEraseChars < aStr.getLength() && _rLayout.GetTextWidth( aTmpStr.toString(), 0, aTmpStr.getLength() ) > nMaxWidth )
{
aTmpStr = OUStringBuffer(aStr);