Skip to content
Permalink
Browse files

Fix #8776

Set the canvas color in 'qgsprojectproperties::apply()' before refresh
  • Loading branch information
ahuarte47 authored and m-kuhn committed Oct 7, 2013
1 parent df672e8 commit b2ad0a9bb914c67309b0e4c486b3493086b04a73
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsprojectproperties.cpp
@@ -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;
@@ -813,7 +814,6 @@ void QgsProjectProperties::apply()

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

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

0 comments on commit b2ad0a9

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