summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-25 13:05:43 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-25 13:13:51 +0200
commitc3815ebc9e0802bb8ec2a3f5941862df6e37e6c2 (patch)
tree382c1da787ca33bb4cba27530e170c8c3ea2dabd
parente185f81a99945dbd02de495ed2f2455f0fa0ae0a (diff)
Clear font name before appending to it
-rw-r--r--src/lib/VSDXContentCollector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index 80c0b78..a13733e 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -2083,6 +2083,7 @@ void libvisio::VSDXContentCollector::collectColours(const std::vector<Colour> &c
void libvisio::VSDXContentCollector::collectFont(unsigned short fontID, const WPXBinaryData &textStream, TextFormat format)
{
VSDXFont font;
+ font.name.clear();
_convertDataToString(font.name, textStream, format);
font.encoding = format;
m_fonts[fontID] = font;