src/lib/VSDOutputElementList.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 79f15858b2ccfcf87aa5dcd52a18a5bdf0a9bbd4 Author: Fridrich Å trba <fridrich.st...@bluewin.ch> Date: Tue Dec 3 12:37:53 2013 +0100 Insert only single empty text Change-Id: Ic2ef7a1f9694de48a2295cec7269410020f8cb06 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);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits