Ignore:
Timestamp:
Jul 19, 2010, 4:24:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed a typo that caused a path separator to be missing in the output file name when printing to a PDF or PS file in the print dialog. Closes #169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/dialogs/qprintdialog_unix.cpp

    r651 r762  
    761761    if (format == QPrinter::PostScriptFormat || format == QPrinter::PdfFormat) {
    762762        QString cur = QDir::currentPath();
    763 #ifndef Q_WS_PM
     763#ifdef Q_WS_PM
     764        if (cur.at(cur.length()-1) != QLatin1Char('/'))
     765            cur += QLatin1Char('/');
     766#else
    764767        QString home = QDir::homePath();
    765768        if (home.at(home.length()-1) != QLatin1Char('/'))
Note: See TracChangeset for help on using the changeset viewer.