Skip to content

Commit

Permalink
Merge pull request #2610 from SebDieBln/ReadAlphaSelectionColor
Browse files Browse the repository at this point in the history
Read alpha component of selection color from project properties (fixes #13994)
  • Loading branch information
m-kuhn committed Dec 24, 2015
2 parents 447121e + 46bc85a commit 2415e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4336,10 +4336,11 @@ bool QgisApp::addProject( const QString& projectFile )
mOverviewCanvas->setBackgroundColor( myColor );

QgsDebugMsg( "Canvas background color restored..." );
int myAlphaInt = QgsProject::instance()->readNumEntry( "Gui", "/SelectionColorAlphaPart", 255 );
myRedInt = QgsProject::instance()->readNumEntry( "Gui", "/SelectionColorRedPart", 255 );
myGreenInt = QgsProject::instance()->readNumEntry( "Gui", "/SelectionColorGreenPart", 255 );
myBlueInt = QgsProject::instance()->readNumEntry( "Gui", "/SelectionColorBluePart", 0 );
myColor = QColor( myRedInt, myGreenInt, myBlueInt );
myColor = QColor( myRedInt, myGreenInt, myBlueInt, myAlphaInt );
mMapCanvas->setSelectionColor( myColor ); //this is selection color before rendering starts

//load project scales
Expand Down

0 comments on commit 2415e37

Please sign in to comment.