[Libreoffice-commits] libvisio.git: 2 commits - src/conv src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Thu May 2 13:29:11 PDT 2013
src/conv/raw/.gitignore | 1 +
src/conv/svg/.gitignore | 1 +
src/conv/text/.gitignore | 1 +
src/lib/VSDSVGGenerator.cpp | 21 ++++-----------------
4 files changed, 7 insertions(+), 17 deletions(-)
New commits:
commit 089958eb29e9f191ba3e3505a7d68bf50d0e044f
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Thu May 2 22:28:45 2013 +0200
Ignore more liberally
diff --git a/src/conv/raw/.gitignore b/src/conv/raw/.gitignore
index 6379f06..a0e004b 100644
--- a/src/conv/raw/.gitignore
+++ b/src/conv/raw/.gitignore
@@ -8,3 +8,4 @@ Makefile.in
vsd2raw
vss2raw
*.rc
+*.exe
diff --git a/src/conv/svg/.gitignore b/src/conv/svg/.gitignore
index 6e55370..d444212 100644
--- a/src/conv/svg/.gitignore
+++ b/src/conv/svg/.gitignore
@@ -8,3 +8,4 @@ Makefile.in
vsd2xhtml
vss2xhtml
*.rc
+*.exe
diff --git a/src/conv/text/.gitignore b/src/conv/text/.gitignore
index 127b59a..4c190d6 100644
--- a/src/conv/text/.gitignore
+++ b/src/conv/text/.gitignore
@@ -8,3 +8,4 @@ Makefile.in
vsd2text
vss2text
*.rc
+*.exe
commit b57b1c36aafe4199218cecf8c260948254110684
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Thu May 2 22:27:52 2013 +0200
libwpd already does this conversion, so don't dupplicate
diff --git a/src/lib/VSDSVGGenerator.cpp b/src/lib/VSDSVGGenerator.cpp
index 2a05060..90f8642 100644
--- a/src/lib/VSDSVGGenerator.cpp
+++ b/src/lib/VSDSVGGenerator.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)
More information about the Libreoffice-commits
mailing list