diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-26 23:33:19 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-26 23:33:27 +0100 |
commit | b33285f43cc30d1a464f55c25aee548761b9c0f0 (patch) | |
tree | 0db6829414bf353306c7f7e8ad901a73084c2825 /src/lib/VSDContentCollector.cpp | |
parent | 4785b4f9e40e72f0175e711121dc65ea96b298a1 (diff) |
Revert "WIP[0]: sanitize the _flushText mess"
This reverts commit 31b0d9f6c9008c9e7b16cf79136afffc650a9fa9.
Diffstat (limited to 'src/lib/VSDContentCollector.cpp')
-rw-r--r-- | src/lib/VSDContentCollector.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp index 939a6d0..97be554 100644 --- a/src/lib/VSDContentCollector.cpp +++ b/src/lib/VSDContentCollector.cpp @@ -53,7 +53,7 @@ libvisio::VSDContentCollector::VSDContentCollector( m_currentPageNumber(0), m_shapeOutputDrawing(0), m_shapeOutputText(0), m_pageOutputDrawing(), m_pageOutputText(), m_documentPageShapeOrders(documentPageShapeOrders), m_pageShapeOrder(m_documentPageShapeOrders.begin()), m_isFirstGeometry(true), m_NURBSData(), m_polylineData(), - m_textStream(), m_currentText(), m_names(), m_stencilNames(), m_fields(), m_stencilFields(), m_fieldIndex(0), + m_textStream(), m_names(), m_stencilNames(), m_fields(), m_stencilFields(), m_fieldIndex(0), m_textFormat(VSD_TEXT_ANSI), m_charFormats(), m_paraFormats(), m_lineStyle(), m_fillStyle(), m_textBlockStyle(), m_themeReference(), m_defaultCharStyle(), m_defaultParaStyle(), m_currentStyleSheet(0), m_styles(styles), m_stencils(stencils), m_stencilShape(0), m_isStencilStarted(false), m_currentGeometryCount(0), @@ -2113,6 +2113,9 @@ void libvisio::VSDContentCollector::collectShape(unsigned id, unsigned level, un _handleForeignData(m_stencilShape->m_foreign->data); } + // m_textStream = m_stencilShape->m_text; + // m_textFormat = m_stencilShape->m_textFormat; + for (std::map< unsigned, VSDName>::const_iterator iterData = m_stencilShape->m_names.begin(); iterData != m_stencilShape->m_names.end(); ++iterData) { librevenge::RVNGString nameString; @@ -2219,13 +2222,6 @@ void libvisio::VSDContentCollector::collectText(unsigned level, const librevenge m_textStream = textStream; m_textFormat = format; - m_currentText.clear(); - if (!m_textStream.empty()) - { - std::vector<unsigned char> tmpBuffer(textStream.size()); - memcpy(&tmpBuffer[0], textStream.getDataBuffer(), textStream.size()); - appendCharacters(m_currentText, tmpBuffer, format); - } } void libvisio::VSDContentCollector::collectParaIX(unsigned /* id */ , unsigned level, unsigned charCount, const boost::optional<double> &indFirst, |