diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-16 22:38:45 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-16 22:39:02 +0200 |
commit | b9262e415c6deabc403df51230929649e0511e62 (patch) | |
tree | bf31e7f275f62adf067e40a7ffc0a85fad62477a /vcl | |
parent | c6ec3e4cee8c7c22380780f2661ac23946cdb050 (diff) |
overloading is hard to resolve for poor old c++
Change-Id: I76ae48783942a558c674c5dcb2869540a819bf49
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/text.cxx | 2 |
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); |