Skip to content
Browse files

[layouts] More helpful error messages

(cherry-picked from e6af079)
  • Loading branch information
nyalldawson committed Jul 19, 2018
1 parent 2157ab8 commit abcee3a55efc0e23a15804e5d6e826161b9a4b3b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -1884,7 +1884,7 @@ void QgsLayoutDesignerDialog::exportToRaster()
case QgsLayoutExporter::FileError:
QMessageBox::warning( this, tr( "Image Export Error" ),
tr( "Cannot write to %1.\n\nThis file may be open in another application." ).arg( exporter.errorFile() ),
tr( "Cannot write to %1.\n\nThis file may be open in another application." ).arg( QDir::toNativeSeparators( exporter.errorFile() ) ),
QMessageBox::Ok );
@@ -1895,7 +1895,7 @@ void QgsLayoutDesignerDialog::exportToRaster()
tr( "Trying to create image %1 (%2×%3 @ %4dpi ) "
"resulted in a memory overflow.\n\n"
"Please try a lower resolution or a smaller paper size." )
.arg( exporter.errorFile() ).arg( imageSize.width() ).arg( imageSize.height() ).arg( settings.dpi ),
.arg( QDir::toNativeSeparators( exporter.errorFile() ) ).arg( imageSize.width() ).arg( imageSize.height() ).arg( settings.dpi ),
QMessageBox::Ok, QMessageBox::Ok );

0 comments on commit abcee3a

Please sign in to comment.
You can’t perform that action at this time.