Skip to content

Instantly share code, notes, and snippets.

@kimaidou
kimaidou / gist:2627175
Created May 7, 2012 10:41
Project Scales List
diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp
index bf22859..2df8ade 100644
--- a/src/app/qgisapp.cpp
+++ b/src/app/qgisapp.cpp
@@ -2797,6 +2797,11 @@ void QgisApp::fileNew( bool thePromptToSaveFlag )
myRenderer->setProjectionsEnabled( settings.value( "/Projections/otfTransformEnabled", 0 ).toBool() );
updateCRSStatusBar();
+
+ // update the scale list combobox
diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp
index bf22859..dc78a98 100644
--- a/src/app/qgisapp.cpp
+++ b/src/app/qgisapp.cpp
@@ -6245,7 +6245,11 @@ void QgisApp::projectProperties()
// Line below was commented out by wonder three years ago (r4949).
// It is needed to refresh scale bar after changing display units.
connect( pp, SIGNAL( refresh() ), mMapCanvas, SLOT( refresh() ) );
-
+
@kimaidou
kimaidou / project_scales_list
Created May 7, 2012 10:37
Project Scales List
diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp
index bf22859..dc78a98 100644
--- a/src/app/qgisapp.cpp
+++ b/src/app/qgisapp.cpp
@@ -6245,7 +6245,11 @@ void QgisApp::projectProperties()
// Line below was commented out by wonder three years ago (r4949).
// It is needed to refresh scale bar after changing display units.
connect( pp, SIGNAL( refresh() ), mMapCanvas, SLOT( refresh() ) );
-
+