Merge pull request #1606 from arnaud-morvan/selectioncolor_alphachannel

Fix #11307. Apply user selection alpha channel to mapsettings on newfile.
This commit is contained in:
Denis Rouzaud 2014-10-03 17:55:16 +02:00
commit c7a1650767

View File

@ -3440,7 +3440,7 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )
prj->writeEntry( "Gui", "/SelectionColorGreenPart", myGreen );
prj->writeEntry( "Gui", "/SelectionColorBluePart", myBlue );
prj->writeEntry( "Gui", "/SelectionColorAlphaPart", myAlpha );
mMapCanvas->setSelectionColor( QColor( myRed, myGreen, myBlue ) );
mMapCanvas->setSelectionColor( QColor( myRed, myGreen, myBlue, myAlpha ) );
//set the canvas to the default background color
//the default can be set in qgisoptions