From koffice-devel Sun Aug 25 05:19:07 2002 From: Ariya Hidayat Date: Sun, 25 Aug 2002 05:19:07 +0000 To: koffice-devel Subject: patch to fix bug #45396 X-MARC-Message: https://marc.info/?l=koffice-devel&m=103025610813371 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_V3WDP624OSEMWLCHOLVS" --------------Boundary-00=_V3WDP624OSEMWLCHOLVS Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit 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. --------------Boundary-00=_V3WDP624OSEMWLCHOLVS Content-Type: text/x-diff; charset="us-ascii"; name="csvexport.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="csvexport.patch" 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. --------------Boundary-00=_V3WDP624OSEMWLCHOLVS-- _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel