summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-02 22:37:42 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-02 22:37:42 +0200
commit1130b59b7518e4533c09818a5129540aadb14d4f (patch)
treefd45fec4c7f4df20e95c0f77b8429c3d72f6475f
parent789f2fd6e95c191f1f14132e5a21a53603e111f0 (diff)
libwpd already does this conversion, so don't dupplicate
-rw-r--r--src/conv/raw/ppp2raw.cpp2
-rw-r--r--src/lib/PGPLUSSVGGenerator.cpp21
2 files changed, 5 insertions, 18 deletions
diff --git a/src/conv/raw/ppp2raw.cpp b/src/conv/raw/ppp2raw.cpp
index eb91ed9..a5226e1 100644
--- a/src/conv/raw/ppp2raw.cpp
+++ b/src/conv/raw/ppp2raw.cpp
@@ -168,7 +168,7 @@ void RawPainter::drawPath(const ::WPXPropertyListVector &path)
printf("RawPainter::drawPath (%s)\n", getPropString(path).cstr());
}
-void RawPainter::drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData& /*binaryData*/)
+void RawPainter::drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData & /*binaryData*/)
{
printf("RawPainter::drawGraphicObject (%s)\n", getPropString(propList).cstr());
}
diff --git a/src/lib/PGPLUSSVGGenerator.cpp b/src/lib/PGPLUSSVGGenerator.cpp
index e60afec..75bf65d 100644
--- a/src/lib/PGPLUSSVGGenerator.cpp
+++ b/src/lib/PGPLUSSVGGenerator.cpp
@@ -35,23 +35,10 @@
static std::string doubleToString(const double value)
{
- std::ostringstream tempStream;
- tempStream << value;
-#ifndef __ANDROID__
- std::string decimalPoint(localeconv()->decimal_point);
-#else
- std::string decimalPoint(".");
-#endif
- if ((decimalPoint.size() == 0) || (decimalPoint == "."))
- return tempStream.str();
- std::string stringValue(tempStream.str());
- if (!stringValue.empty())
- {
- std::string::size_type pos;
- while ((pos = stringValue.find(decimalPoint)) != std::string::npos)
- stringValue.replace(pos,decimalPoint.size(),".");
- }
- return stringValue;
+ WPXProperty *prop = WPXPropertyFactory::newDoubleProp(value);
+ std::string retVal = prop->getStr().cstr();
+ delete prop;
+ return retVal;
}
static unsigned stringToColour(const ::WPXString &s)