diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-12-03 12:37:53 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-12-03 12:37:53 +0100 |
commit | 79f15858b2ccfcf87aa5dcd52a18a5bdf0a9bbd4 (patch) | |
tree | f088f2b4c9654eaf4ec88c4a983c175687974e4f | |
parent | aa4d0f097bd31a24642dbe0ae4681d79940ffc0d (diff) |
Insert only single empty text
Change-Id: Ic2ef7a1f9694de48a2295cec7269410020f8cb06
-rw-r--r-- | src/lib/VSDOutputElementList.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/VSDOutputElementList.cpp b/src/lib/VSDOutputElementList.cpp index 187aa67..4e94b38 100644 --- a/src/lib/VSDOutputElementList.cpp +++ b/src/lib/VSDOutputElementList.cpp @@ -79,8 +79,13 @@ static void separateTabsAndInsertText(librevenge::RVNGDrawingInterface *iface, c static void separateSpacesAndInsertText(librevenge::RVNGDrawingInterface *iface, const librevenge::RVNGString &text) { - if (!iface || text.empty()) + if (!iface) + return; + if (text.empty()) + { + iface->insertText(text); return; + } librevenge::RVNGString tmpText; int numConsecutiveSpaces = 0; librevenge::RVNGString::Iter i(text); |