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

List:       klyx
Subject:    Problem with 'Print to file'
From:       Doug Rabson <dfr () calcaphon ! com>
Date:       1998-12-10 12:44:53
[Download RAW message or body]

I just started using klyx-0.9.8a and I came across a problem with
printing.  When I selected the 'Print to file' option, klyx faulted
(running klyx on FreeBSD 3.0 with KDE 1.0).  I tracked the problem down to
some code which passes a boolean value to KConfig::writeEntry() instead of
a string (shouldn't there be a writeBoolEntry() to match readBoolEntry()
in KConfig?)

This patch fixes it:

--- lyx_cb.C~	Mon Sep 28 16:56:03 1998
+++ lyx_cb.C	Thu Dec 10 12:36:08 1998
@@ -2721,7 +2721,7 @@
     if( klyxprinter->setup() ) {
 #endif
 	config->setGroup( "Printer" );
-	config->writeEntry( "FileOutput", (const char*) klyxprinter->outputToFile() );
+	config->writeEntry( "FileOutput", klyxprinter->outputToFile() ? "true" : "false" );
 	config->writeEntry( "PrintProgram",  (const char*) klyxprinter->printProgram() );
 	config->writeEntry( "Printer",  (const char*) klyxprinter->printerName() );
 	config->writeEntry( "Orientation",  (const char*) klyxprinter->orientation() );

--
Doug Rabson				Mail:  dfr@calcaphon.com
					Phone: +44 171 289 4201

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

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