[Libreoffice-commits] libvisio.git: src/lib

Fridrich Å trba fridrich.strba at bluewin.ch
Fri Jul 12 22:56:05 PDT 2013


 src/lib/VSDContentCollector.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c00eda63adaf09678fe3fd70bb2e38c48b6abd9e
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Sat Jul 13 07:55:20 2013 +0200

    Fix some runtime problems with msvc-built libvisio

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;
       }


More information about the Libreoffice-commits mailing list