summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-13 07:55:20 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-13 07:55:20 +0200
commitc00eda63adaf09678fe3fd70bb2e38c48b6abd9e (patch)
tree5853f57fcb6133db224865d9fa5a18fbb81c0bdf
parent128c47a9137baf121f39d63e3f89b699abc81d93 (diff)
Fix some runtime problems with msvc-built libvisio
-rw-r--r--src/lib/VSDContentCollector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index 09fc553..da345bf 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -655,7 +655,8 @@ void libvisio::VSDContentCollector::_flushText()
{
// Insert duplicate
std::vector<VSDCharStyle>::iterator charIt = m_charFormats.begin() + charIndex;
- m_charFormats.insert(charIt, m_charFormats[charIndex]);
+ VSDCharStyle tmpCharFormat = m_charFormats[charIndex];
+ m_charFormats.insert(charIt, tmpCharFormat);
m_charFormats[charIndex].charCount = paraCharCount;
m_charFormats[charIndex+1].charCount -= paraCharCount;
}