Skip to content
Permalink
Browse files

read alpha component of selection color from project

(fixes #13994)
  • Loading branch information
SebDieBln committed Dec 24, 2015
1 parent 8f29f28 commit 46bc85ae635cc07209627712157abe06d9850636
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 46bc85a

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