Attached patch makes KDE print error report on error only ;) (doh - I was sure I had tested it :/) and fixes a couple of compiler warnings. thanks john -- "Words ought to be a little wild, for they are the assault of thoughts on the unthinking." - John Maynard Keynes
diff -u -r1.584 ChangeLog --- ChangeLog 2000/10/05 14:03:45 1.584 +++ ChangeLog 2000/10/05 18:54:00 @@ -1,3 +1,12 @@ +2000-10-05 John Levon <[EMAIL PROTECTED]> + + * src/frontends/kde/FormPrint.C: fix error reporting + + * src/frontends/xforms/FormDocument.C: fix compiler + warnings + + * lib/.cvsignore: add Literate.nw + 2000-10-04 John Levon <[EMAIL PROTECTED]> * src/frontends/kde/FormCitation.C: make the dialog diff -u -r1.3 .cvsignore --- lib/.cvsignore 2000/08/14 09:44:50 1.3 +++ lib/.cvsignore 2000/10/05 18:54:00 @@ -4,3 +4,4 @@ packages.lst lyxrc.defaults listerrors +Literate.nw diff -u -r1.1 FormPrint.C --- src/frontends/kde/FormPrint.C 2000/10/05 14:01:05 1.1 +++ src/frontends/kde/FormPrint.C 2000/10/05 18:54:00 @@ -99,11 +99,9 @@ dialog_->getWhichPages(), from, to, dialog_->getReverse(), dialog_->getSort(), strToInt(dialog_->getCount()))); - if (retval!=0) { + if (!retval) { // FIXME: should have a utility class for this - string message(_("The error :\n\n")); - message += strerror(retval); - message += _("\n\noccurred while printing.\n"); + string message(_("An error occured while printing.\n\n")); message += _("Check the parameters are correct.\n"); KMsgBox msg(0, _("LyX: Print Error"), message.c_str(), KMsgBox::EXCLAMATION, _("&OK")); msg.raise(); diff -u -r1.16 FormDocument.C --- src/frontends/xforms/FormDocument.C 2000/10/05 07:57:00 1.16 +++ src/frontends/xforms/FormDocument.C 2000/10/05 18:54:01 @@ -949,7 +949,7 @@ /* maybe try to support the others later */ BufferParams & param = lv_->buffer()->params; - int data; + int data = 0; if( cb == BULLETDEPTH1 ) data = 0; else if ( cb == BULLETDEPTH2 ) @@ -978,7 +978,7 @@ /* Here we have to change the background pixmap to that selected */ /* by the user. (eg. standard.xpm, psnfss1.xpm etc...) */ - int data; + int data = 0; if( cb == BULLETPANEL1 ) data = 0; else if ( cb == BULLETPANEL2 )