[Libreoffice-commits] .: chart2/source

Tor Lillqvist tml at kemper.freedesktop.org
Fri Mar 30 01:59:10 PDT 2012


 chart2/source/view/main/ChartView.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0f1e33c54d02a20c476413ceebc99460a9cfef1f
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Fri Mar 30 11:52:33 2012 +0300

    WaE: format '%i' expects type 'int', but argument has type 'long int'

diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 77fe6ab..fbc507d 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -3044,12 +3044,12 @@ int closeCallback(void* )
 
 void dumpPositionAsAttribute(const awt::Point& rPoint, xmlTextWriterPtr xmlWriter)
 {
-    xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("position"), "%i,%i", rPoint.X, rPoint.Y);
+    xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("position"), "%li,%li", rPoint.X, rPoint.Y);
 }
 
 void dumpSizeAsAttribute(const awt::Size& rSize, xmlTextWriterPtr xmlWriter)
 {
-    xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("size"), "%ix%i", rSize.Width, rSize.Height);
+    xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("size"), "%lix%li", rSize.Width, rSize.Height);
 }
 
 void dumpShapeDescriptorAsAttribute( uno::Reference< drawing::XShapeDescriptor > xDescr, xmlTextWriterPtr xmlWriter )


More information about the Libreoffice-commits mailing list