summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTibby Lickle <tibbylickle@gmail.com>2011-07-22 14:27:25 +0100
committerTibby Lickle <tibbylickle@gmail.com>2011-07-22 14:27:25 +0100
commit5a84c3595392c40c103877a978391e0e23c37d67 (patch)
tree0f6ddec13857d53e9bc33bb1f2f372ad8a06846a
parent3e86edd4ac2f2e90bf59ad1849036e6f2684984e (diff)
Fix for missing svg text closing elementlibvisio-0.0.4
-rw-r--r--src/lib/VSDXContentCollector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index c0cedef..b0befba 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -1040,8 +1040,8 @@ void libvisio::VSDXContentCollector::collectCharFormat(unsigned /*id*/ , unsigne
unsigned short c = m_textStream[i] | (m_textStream[i+1] << 8);
_appendUTF16LE(text, c);
}
- if (charCount > 0)
- m_textStream.erase(m_textStream.begin(), m_textStream.begin() + (max*2));
+
+ m_textStream.erase(m_textStream.begin(), m_textStream.begin() + (max*2));
}
WPXPropertyList textProps;
textProps.insert("style:font-name", fontFace);