Skip to content

Commit

Permalink
read alpha component of selection color from project
Browse files Browse the repository at this point in the history
(fixes #13994)
  • Loading branch information
SebDieBln committed Dec 24, 2015
1 parent 8f29f28 commit 46bc85a
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 46bc85a

Please sign in to comment.