]> git.lyx.org Git - features.git/commitdiff
* src/frontends/qt4/QPrint.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 26 Jun 2007 16:46:40 +0000 (16:46 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 26 Jun 2007 16:46:40 +0000 (16:46 +0000)
- use internal_path to prevent assert on windows (bug 3916).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18896 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QPrint.cpp

index 47350a9fae98b927e3018a6779817be11fb7edbb..614f7264f3adadf6fe577f12c79535928ed7abb2 100644 (file)
 
 #include "controllers/ControlPrint.h"
 
+#include "support/os.h"
+
 #include <qlineedit.h>
 #include <qcheckbox.h>
 #include <qradiobutton.h>
 #include <qspinbox.h>
 #include <qpushbutton.h>
 
+using lyx::support::os::internal_path;
+
 namespace lyx {
 namespace frontend {
 
@@ -94,7 +98,7 @@ void QPrint::apply()
 
        PrinterParams const pp(t,
                fromqstr(dialog_->printerED->text()),
-               fromqstr(dialog_->fileED->text()),
+               internal_path(fromqstr(dialog_->fileED->text())),
                dialog_->allRB->isChecked(),
                dialog_->fromED->text().toUInt(),
                dialog_->toED->text().toUInt(),