Skip to content
Permalink
Browse files

Respect project selection color when saving map canvas as image/PDF

  • Loading branch information
nirvn committed Jan 18, 2019
1 parent 7364406 commit f369461f8adfb73801b503283852fb392ece61f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() );

0 comments on commit f369461

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