]> git.lyx.org Git - features.git/commitdiff
Make non-spooled printing recognize printer given in print dialog.
authorRichard Heck <rgheck@comcast.net>
Tue, 5 Jun 2007 17:42:01 +0000 (17:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 5 Jun 2007 17:42:01 +0000 (17:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18682 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 0cb14f577a2bd583d66ed14a1ad23a6bc8670bcc..46dfb5e86ec21fd82f4666371b747ccd0bb4023f 100644 (file)
@@ -1068,6 +1068,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                                        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));