From c17dc43d5b15979d4e842dc5224c4f2809948e90 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Fri, 18 Jan 2019 16:01:10 +0700 Subject: [PATCH] Respect project selection color when saving map canvas as image/PDF --- src/app/qgsmapsavedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qgsmapsavedialog.cpp b/src/app/qgsmapsavedialog.cpp index 943bebf6a49..6f8357c2f4b 100644 --- a/src/app/qgsmapsavedialog.cpp +++ b/src/app/qgsmapsavedialog.cpp @@ -291,7 +291,7 @@ void QgsMapSaveDialog::applyMapSettings( QgsMapSettings &mapSettings ) mapSettings.setFlag( QgsMapSettings::ForceVectorOutput, true ); // force vector output (no caching of marker images etc.) mapSettings.setFlag( QgsMapSettings::DrawEditingInfo, false ); mapSettings.setFlag( QgsMapSettings::DrawSelection, true ); - + mapSettings.setSelectionColor( mMapCanvas->mapSettings().selectionColor() ); mapSettings.setDestinationCrs( mMapCanvas->mapSettings().destinationCrs() ); mapSettings.setExtent( extent() ); mapSettings.setOutputSize( size() );