@@ -4009,6 +4009,11 @@ bool QgisApp::addProject( QString projectFile )
4009
4009
QColor myColor = QColor ( myRedInt, myGreenInt, myBlueInt );
4010
4010
mMapCanvas ->setCanvasColor ( myColor ); // this is fill color before rendering starts
4011
4011
QgsDebugMsg ( " Canvas background color restored..." );
4012
+ myRedInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /SelectionColorRedPart" , 255 );
4013
+ myGreenInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /SelectionColorGreenPart" , 255 );
4014
+ myBlueInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /SelectionColorBluePart" , 0 );
4015
+ myColor = QColor ( myRedInt, myGreenInt, myBlueInt );
4016
+ mMapCanvas ->setSelectionColor ( myColor ); // this is selection color before rendering starts
4012
4017
4013
4018
// load project scales
4014
4019
bool projectScales = QgsProject::instance ()->readBoolEntry ( " Scales" , " /useProjectScales" );
@@ -9086,12 +9091,6 @@ void QgisApp::projectProperties()
9086
9091
// Display the modal dialog box.
9087
9092
pp->exec ();
9088
9093
9089
- int myRedInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /CanvasColorRedPart" , 255 );
9090
- int myGreenInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /CanvasColorGreenPart" , 255 );
9091
- int myBlueInt = QgsProject::instance ()->readNumEntry ( " Gui" , " /CanvasColorBluePart" , 255 );
9092
- QColor myColor = QColor ( myRedInt, myGreenInt, myBlueInt );
9093
- mMapCanvas ->setCanvasColor ( myColor ); // this is fill color before rendering onto canvas
9094
-
9095
9094
qobject_cast<QgsMeasureTool*>( mMapTools .mMeasureDist )->updateSettings ();
9096
9095
qobject_cast<QgsMeasureTool*>( mMapTools .mMeasureArea )->updateSettings ();
9097
9096
qobject_cast<QgsMapToolMeasureAngle*>( mMapTools .mMeasureAngle )->updateSettings ();
0 commit comments