Skip to content

Commit abcee3a

Browse files
committedJul 19, 2018
[layouts] More helpful error messages
(cherry-picked from e6af079)
1 parent 2157ab8 commit abcee3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/layout/qgslayoutdesignerdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ void QgsLayoutDesignerDialog::exportToRaster()
18841884
case QgsLayoutExporter::FileError:
18851885
cursorOverride.release();
18861886
QMessageBox::warning( this, tr( "Image Export Error" ),
1887-
tr( "Cannot write to %1.\n\nThis file may be open in another application." ).arg( exporter.errorFile() ),
1887+
tr( "Cannot write to %1.\n\nThis file may be open in another application." ).arg( QDir::toNativeSeparators( exporter.errorFile() ) ),
18881888
QMessageBox::Ok,
18891889
QMessageBox::Ok );
18901890
break;
@@ -1895,7 +1895,7 @@ void QgsLayoutDesignerDialog::exportToRaster()
18951895
tr( "Trying to create image %1 (%2×%3 @ %4dpi ) "
18961896
"resulted in a memory overflow.\n\n"
18971897
"Please try a lower resolution or a smaller paper size." )
1898-
.arg( exporter.errorFile() ).arg( imageSize.width() ).arg( imageSize.height() ).arg( settings.dpi ),
1898+
.arg( QDir::toNativeSeparators( exporter.errorFile() ) ).arg( imageSize.width() ).arg( imageSize.height() ).arg( settings.dpi ),
18991899
QMessageBox::Ok, QMessageBox::Ok );
19001900
break;
19011901

0 commit comments

Comments
 (0)
Please sign in to comment.