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

List:       koffice-devel
Subject:    patch to fix bug #45396
From:       Ariya Hidayat <ariya () tf ! itb ! ac ! id>
Date:       2002-08-25 5:19:07
[Download RAW message or body]

The following is a patch to fix bug #45396 (plain text filter only export 
first sheet). The filter now exports the active sheet. 
For KSpread 1.3, I believe sheet selection might be put in a dialog box.

Please review.
["csvexport.patch" (text/x-diff)]

Index: csvexport.cc
===================================================================
RCS file: /home/kde/koffice/filters/kspread/csv/csvexport.cc,v
retrieving revision 1.19
diff -u -3 -p -r1.19 csvexport.cc
--- csvexport.cc	2002/04/21 16:07:19	1.19
+++ csvexport.cc	2002/08/25 06:10:47
@@ -92,7 +92,8 @@ KoFilter::ConversionStatus CSVExport::co
     // (Hey, this could be part of the dialog too, choosing which table to export....
     //  It's great to have parametrable filters... IIRC even MSOffice doesn't have that)
     // Ok, for now we'll use the first table - my document has only one table anyway ;-)))
-    KSpreadTable * table = ksdoc->map()->firstTable();
+    KSpreadTable * table = ksdoc->displayTable();
+    if( !table ) table = ksdoc->map()->firstTable();
 
     // Ah ah ah - the document is const, but the map and table aren't. Safety: 0.
 

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

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

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