Skip to content

Commit c17dc43

Browse files
committedJan 18, 2019
Respect project selection color when saving map canvas as image/PDF
1 parent 4575547 commit c17dc43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsmapsavedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void QgsMapSaveDialog::applyMapSettings( QgsMapSettings &mapSettings )
291291
mapSettings.setFlag( QgsMapSettings::ForceVectorOutput, true ); // force vector output (no caching of marker images etc.)
292292
mapSettings.setFlag( QgsMapSettings::DrawEditingInfo, false );
293293
mapSettings.setFlag( QgsMapSettings::DrawSelection, true );
294-
294+
mapSettings.setSelectionColor( mMapCanvas->mapSettings().selectionColor() );
295295
mapSettings.setDestinationCrs( mMapCanvas->mapSettings().destinationCrs() );
296296
mapSettings.setExtent( extent() );
297297
mapSettings.setOutputSize( size() );

0 commit comments

Comments
 (0)
Please sign in to comment.