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

Fridrich Å trba fridrich.strba at bluewin.ch
Tue Dec 3 03:38:17 PST 2013


 src/lib/VSDOutputElementList.cpp |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 79f15858b2ccfcf87aa5dcd52a18a5bdf0a9bbd4
Author: Fridrich Å trba <fridrich.strba at 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);


More information about the Libreoffice-commits mailing list