From eeee84ee4662b753462ed11d086977a40d323261 Mon Sep 17 00:00:00 2001 From: Matthias Kuehlewein Date: Mon, 15 Mar 2021 22:04:14 +0100 Subject: [PATCH] Check return value of MapPrinter::kmzTarget() against selected target. Resolves #1914 --- src/gui/print_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/print_widget.cpp b/src/gui/print_widget.cpp index 9632f735f..482c47f9d 100644 --- a/src/gui/print_widget.cpp +++ b/src/gui/print_widget.cpp @@ -655,7 +655,7 @@ void PrintWidget::setTarget(const QPrinterInfo* target) printer_properties_button->setEnabled(is_printer); bool is_image_target = target == MapPrinter::imageTarget(); - bool is_raster_target = target == MapPrinter::imageTarget() || MapPrinter::kmzTarget(); + bool is_raster_target = target == MapPrinter::imageTarget() || target == MapPrinter::kmzTarget(); vector_mode_button->setEnabled(!is_raster_target); separations_mode_button->setEnabled(!is_raster_target && map->hasSpotColors()); if (is_raster_target)