From 7022c7029029afa3f6cc9191a221d8606f940d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fourey?= Date: Mon, 11 Sep 2023 12:25:43 +0200 Subject: [PATCH] Send '_preview_area_width/height' to command gui_error_preview --- src/Widgets/PreviewWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Widgets/PreviewWidget.cpp b/src/Widgets/PreviewWidget.cpp index f0c1721..f7da91e 100644 --- a/src/Widgets/PreviewWidget.cpp +++ b/src/Widgets/PreviewWidget.cpp @@ -216,8 +216,8 @@ void PreviewWidget::updateErrorImage() image.move_to(images); QString fullCommandLine = commandFromOutputMessageMode(Settings::outputMessageMode()); fullCommandLine += QString(" _host=%1 _tk=qt").arg(GmicQtHost::ApplicationShortname); - fullCommandLine += QString(" _preview_width=%1").arg(width()); - fullCommandLine += QString(" _preview_height=%1").arg(height()); + fullCommandLine += QString(" _preview_area_width=%1").arg(width()); + fullCommandLine += QString(" _preview_area_height=%1").arg(height()); fullCommandLine += QString(" gui_error_preview \"%2\"").arg(_errorMessage); try { gmic(fullCommandLine.toLocal8Bit().constData(), images, imageNames, GmicStdLib::Array.constData(), true);