From c00eda63adaf09678fe3fd70bb2e38c48b6abd9e Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Sat, 13 Jul 2013 07:55:20 +0200 Subject: Fix some runtime problems with msvc-built libvisio --- src/lib/VSDContentCollector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::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; } -- cgit v1.2.3