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

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


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

New commits:
commit 5ca4ddf38f1248908697e0b6bc301a940929f925
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Tue Dec 3 12:54:51 2013 +0100

    Insert only single empty text
    
    Change-Id: Ifa5823e5f6ba588b84858e8b0b987bb54349af46

diff --git a/src/lib/CDROutputElementList.cpp b/src/lib/CDROutputElementList.cpp
index cfda29a..2ca67ea 100644
--- a/src/lib/CDROutputElementList.cpp
+++ b/src/lib/CDROutputElementList.cpp
@@ -78,8 +78,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