basegfx/source/tools/numbertools.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d3079ed6be3129c0f6c697a3b31d8f69997fec3c
Author: Thorsten Behrens <tbehr...@suse.com>
Date:   Mon Feb 6 09:18:00 2012 +0100

    Stick suitable int type to std::max
    
    This didn't compile on mac.

diff --git a/basegfx/source/tools/numbertools.cxx 
b/basegfx/source/tools/numbertools.cxx
index bd4c985..2f86fc9 100644
--- a/basegfx/source/tools/numbertools.cxx
+++ b/basegfx/source/tools/numbertools.cxx
@@ -55,7 +55,8 @@ namespace basegfx { namespace tools
 
         B2DPolyPolygon aRes;
         B2DHomMatrix aMat;
-        double fCurrX=std::max(nTotalDigits-aNum.getLength(), 0) * 
(1.0+fSpace);
+        double fCurrX=std::max(nTotalDigits-aNum.getLength(),
+                               sal_Int32(0)) * (1.0+fSpace);
         for( sal_Int32 i=0; i<aNum.getLength(); ++i )
         {
             B2DPolyPolygon aCurr;
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to