Skip to content

Commit 2415e37

Browse files
committedDec 24, 2015
Merge pull request #2610 from SebDieBln/ReadAlphaSelectionColor
Read alpha component of selection color from project properties (fixes #13994)
2 parents 447121e + 46bc85a commit 2415e37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4336,10 +4336,11 @@ bool QgisApp::addProject( const QString& projectFile )
43364336
mOverviewCanvas->setBackgroundColor( myColor );
43374337

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

43454346
//load project scales

0 commit comments

Comments
 (0)
Please sign in to comment.