Skip to content

Commit

Permalink
Fix #8776
Browse files Browse the repository at this point in the history
Set the canvas color in 'qgsprojectproperties::apply()' before refresh
  • Loading branch information
ahuarte47 authored and m-kuhn committed Oct 10, 2013
1 parent df672e8 commit b2ad0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsprojectproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ void QgsProjectProperties::apply()
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorRedPart", myColor.red() );
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorGreenPart", myColor.green() );
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorBluePart", myColor.blue() );
mMapCanvas->setCanvasColor( myColor );

//save project scales
QStringList myScales;
Expand Down Expand Up @@ -813,7 +814,6 @@ void QgsProjectProperties::apply()

QgsProject::instance()->relationManager()->setRelations( mRelationManagerDlg->relations() );

//todo XXX set canvas color
emit refresh();
}

Expand Down

0 comments on commit b2ad0a9

Please sign in to comment.