Skip to content
Permalink
Browse files

Merge pull request #2610 from SebDieBln/ReadAlphaSelectionColor

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 2415e37d19b6343e3ef45c106e6ab0f001a30c91
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -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

0 comments on commit 2415e37

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