This patch fixes a bug with non-spooled printing, namely, that the printer named in the print dialog was ignored.

OK to commit?

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Index: LyXFunc.cpp
===================================================================
--- LyXFunc.cpp	(revision 18677)
+++ LyXFunc.cpp	(working copy)
@@ -1068,6 +1068,8 @@
 							command2);
 				} else {
 					// case 2: print directly to a printer
+					if (target_name != "default")
+						command += lyxrc.print_to_printer + target_name + ' ';
 					res = one.startscript(
 						Systemcall::DontWait,
 						command + quoteName(dviname));

Reply via email to