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

List:       kde-commits
Subject:    koffice/kspread
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2004-03-31 21:59:24
Message-ID: 20040331215924.8C4E099D0 () office ! kde ! org
[Download RAW message or body]

CVS commit by ariya: 

handle number-rows-repeated, otherwise cells would be in wrong place


  M +11 -1     kspread_sheet.cc   1.539


--- koffice/kspread/kspread_sheet.cc  #1.538:1.539
@@ -6379,4 +6379,14 @@ bool KSpreadSheet::loadOasis( const QDom
                     cellNode = cellNode.nextSibling();
                 }    
+                
+                if( rowElement.hasAttribute( "table:number-rows-repeated" ) )
+                {
+                    bool ok = false;
+                    int rows = rowElement.attribute( "table:number-rows-repeated" ).toInt( &ok );
+                    if( ok )
+                        for( int i = 1; i < rows; i++ )
+                            // FIXME copy row layout
+                            rowIndex++;
+                }
             }
         }


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

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