diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-03-30 13:17:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-03-30 13:17:37 +0200 |
commit | cdd3ea090a36ebb1aba87b17ed5236d4b9468c15 (patch) | |
tree | e05641a2097de2faa2250741d7e98d289cb73063 /chart2 | |
parent | afde0ef9fe127393ab445cb6798ce718245734b4 (diff) |
Fix format string properly
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index fbc507db1624..d8f518790176 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"), "%li,%li", rPoint.X, rPoint.Y); + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("position"), "%" SAL_PRIdINT32 ",%" SAL_PRIdINT32, rPoint.X, rPoint.Y); } void dumpSizeAsAttribute(const awt::Size& rSize, xmlTextWriterPtr xmlWriter) { - xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("size"), "%lix%li", rSize.Width, rSize.Height); + xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("size"), "%" SAL_PRIdINT32 "x%" SAL_PRIdINT32, rSize.Width, rSize.Height); } void dumpShapeDescriptorAsAttribute( uno::Reference< drawing::XShapeDescriptor > xDescr, xmlTextWriterPtr xmlWriter ) |