[Libreoffice-commits] .: filter/source

Joseph Powers jpowers at kemper.freedesktop.org
Thu Jul 7 22:43:20 PDT 2011


 filter/source/svg/svgexport.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit bcf2a91f74e5c9ffe4b2978d53b7031a85d89ae4
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Thu Jul 7 22:43:03 2011 -0700

    Fix some ambiguous method errors.
    
    My compiler couldn't determine which version of valueOf() to use.
    GCC 4.0 on Mac OS 10.6.8

diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 1d43cc2..af57d3b 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -795,8 +795,8 @@ sal_Bool SVGFilter::implExportDocument()
             mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "clipPathUnits", B2UCONST( "userSpaceOnUse" ) );
             SvXMLElementExport aClipPathElem( *mpSVGExport, XML_NAMESPACE_NONE, "clipPath", sal_True, sal_True );
             {
-                mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "x", OUString::valueOf( 0 ) );
-                mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "y", OUString::valueOf( 0 ) );
+                mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "x", OUString::valueOf( sal_Int32(0) ) );
+                mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "y", OUString::valueOf( sal_Int32(0) ) );
                 mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "width", OUString::valueOf( nDocWidth ) );
                 mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "height", OUString::valueOf( nDocHeight ) );
                 SvXMLElementExport aRectElem( *mpSVGExport, XML_NAMESPACE_NONE, "rect", sal_True, sal_True );
@@ -1897,7 +1897,7 @@ IMPL_LINK( SVGFilter, CalcFieldHdl, EditFieldInfo*, pInfo )
                         case SVX_ARABIC: ;
                         // in case the numbering type is not handled we fall back on arabic numbering
                         default:
-                            aRepresentation = OUString::valueOf( nPageNumber );
+                            aRepresentation = OUString::valueOf( sal_Int32(nPageNumber) );
                             break;
                     }
                 }


More information about the Libreoffice-commits mailing list