Skip to content

Commit

Permalink
Check return value of MapPrinter::kmzTarget() against selected target.
Browse files Browse the repository at this point in the history
  • Loading branch information
dl3sdo committed Mar 15, 2021
1 parent 6cf02b2 commit eeee84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/print_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eeee84e

Please sign in to comment.