[Libreoffice-commits] libvisio.git: src/lib
Fridrich Štrba
fridrich.strba at bluewin.ch
Mon Dec 28 04:29:14 PST 2015
src/lib/VSDContentCollector.cpp | 30 ------------------------------
1 file changed, 30 deletions(-)
New commits:
commit 9df045f04190ed87d49a619821e6c16557a518cf
Author: Fridrich Štrba <fridrich.strba at bluewin.ch>
Date: Mon Dec 28 13:28:34 2015 +0100
Remove unnecessary code. This works the same without it.
Change-Id: I971775f35c8a4fc2d1955dd79e84f8486df9629e
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index 899c837..f24673c 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -432,36 +432,6 @@ void libvisio::VSDContentCollector::_flushText()
m_tabSets.back().m_numChars = 0;
}
- unsigned numCharsInText = (unsigned)m_currentText.len();
-
- for (unsigned iChar = 0; iChar < m_charFormats.size(); iChar++)
- {
- if (m_charFormats[iChar].charCount)
- numCharsInText -= m_charFormats[iChar].charCount;
- else
- m_charFormats[iChar].charCount = numCharsInText;
- }
-
- numCharsInText = (unsigned)m_currentText.len();
-
- for (unsigned iPara = 0; iPara < m_paraFormats.size(); iPara++)
- {
- if (m_paraFormats[iPara].charCount)
- numCharsInText -= m_paraFormats[iPara].charCount;
- else
- m_paraFormats[iPara].charCount = numCharsInText;
- }
-
- numCharsInText = (unsigned)m_currentText.len();
-
- for (unsigned iTab = 0; iTab < m_tabSets.size(); iTab++)
- {
- if (m_tabSets[iTab].m_numChars)
- numCharsInText -= m_tabSets[iTab].m_numChars;
- else
- m_tabSets[iTab].m_numChars = numCharsInText;
- }
-
_appendVisibleAndPrintable(textBlockProps);
m_shapeOutputText->addStartTextObject(textBlockProps);
More information about the Libreoffice-commits
mailing list