[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kword
From:       Laurent Montel <montel () kde ! org>
Date:       2004-01-15 22:46:27
Message-ID: 20040115224627.89BCE9061 () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Not necessary to save a group which have any expression.


  M +15 -11    kweditpersonnalexpressiondia.cc   1.33


--- koffice/kword/kweditpersonnalexpressiondia.cc  #1.32:1.33
@@ -335,4 +335,7 @@ void KWEditPersonnalExpression::saveFile
     for( it = listExpression.begin(); it != listExpression.end(); ++it )
     {
+        lst=it.data();
+        if ( !lst.isEmpty() )
+        {
         QDomElement type = doc.createElement( "Type" );
         begin.appendChild( type );
@@ -340,5 +343,5 @@ void KWEditPersonnalExpression::saveFile
         type.appendChild( typeName );
         typeName.appendChild( doc.createTextNode(it.key()  ) );
-        lst=it.data();
+
         for( uint i=0;i<lst.count();i++ )
         {
@@ -350,4 +353,5 @@ void KWEditPersonnalExpression::saveFile
         }
     }
+    }
     QCString s = doc.toCString();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic