Skip to content

Commit ec5ed50

Browse files
committedOct 5, 2012
Merge branch 'master' of https://github.com/rouault/Quantum-GIS
2 parents 189b066 + 603f35c commit ec5ed50

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed
 

‎src/app/legend/qgslegend.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ QgsLegend::QgsLegend( QgsMapCanvas *canvas, QWidget * parent, const char *name )
8181
, mMapCanvas( canvas )
8282
, mMinimumIconSize( 20, 20 )
8383
, mChanging( false )
84+
, mUpdateDrawingOrder( false )
8485
{
8586
setObjectName( name );
8687

‎src/app/qgsprojectproperties.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,14 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
6666
QGis::UnitType myUnit = myRenderer->mapUnits();
6767
setMapUnits( myUnit );
6868

69+
// we need to initialize it, since the on_cbxProjectionEnabled_stateChanged()
70+
// callback triggered by setChecked() might use it.
71+
mProjectSrsId = myRenderer->destinationCrs().srsid();
72+
6973
//see if the user wants on the fly projection enabled
7074
bool myProjectionEnabled = myRenderer->hasCrsTransformEnabled();
7175
cbxProjectionEnabled->setChecked( myProjectionEnabled );
7276

73-
mProjectSrsId = myRenderer->destinationCrs().srsid();
7477
QgsDebugMsg( "Read project CRSID: " + QString::number( mProjectSrsId ) );
7578
projectionSelector->setSelectedCrsId( mProjectSrsId );
7679
projectionSelector->setEnabled( myProjectionEnabled );

‎src/core/qgscoordinatereferencesystem.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,39 @@ CUSTOM_CRS_VALIDATION QgsCoordinateReferenceSystem::mCustomSrsValidation = NULL;
4747
//--------------------------
4848

4949
QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem()
50-
: mMapUnits( QGis::UnknownUnit )
50+
: mSrsId( 0 )
51+
, mGeoFlag( false )
52+
, mMapUnits( QGis::UnknownUnit )
53+
, mSRID( 0 )
5154
, mIsValidFlag( 0 )
5255
, mValidationHint( "" )
56+
, mAxisInverted( false)
5357
{
5458
mCRS = OSRNewSpatialReference( NULL );
5559
}
5660

5761
QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem( QString theDefinition )
58-
: mMapUnits( QGis::UnknownUnit )
62+
: mSrsId( 0 )
63+
, mGeoFlag( false )
64+
, mMapUnits( QGis::UnknownUnit )
65+
, mSRID( 0 )
5966
, mIsValidFlag( 0 )
6067
, mValidationHint( "" )
68+
, mAxisInverted( false)
6169
{
6270
mCRS = OSRNewSpatialReference( NULL );
6371
createFromString( theDefinition );
6472
}
6573

6674

6775
QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem( const long theId, CrsType theType )
68-
: mMapUnits( QGis::UnknownUnit )
76+
: mSrsId( 0 )
77+
, mGeoFlag( false )
78+
, mMapUnits( QGis::UnknownUnit )
79+
, mSRID( 0 )
6980
, mIsValidFlag( 0 )
7081
, mValidationHint( "" )
82+
, mAxisInverted( false)
7183
{
7284
mCRS = OSRNewSpatialReference( NULL );
7385
createFromId( theId, theType );

‎src/core/qgsmaprenderer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
QgsMapRenderer::QgsMapRenderer()
4545
{
46+
mScale = 1;
4647
mScaleCalculator = new QgsScaleCalculator;
4748
mDistArea = new QgsDistanceArea;
4849
mCachedTrForLayer = 0;

‎src/core/qgsrendercontext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ QgsRenderContext::QgsRenderContext()
2626
mRenderingStopped( false ),
2727
mScaleFactor( 1.0 ),
2828
mRasterScaleFactor( 1.0 ),
29+
mRendererScale( 1.0 ),
2930
mLabelingEngine( NULL )
3031
{
3132

‎src/gui/qgsscalecombobox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <QSettings>
2525
#include <QLineEdit>
2626

27-
QgsScaleComboBox::QgsScaleComboBox( QWidget* parent ) : QComboBox( parent )
27+
QgsScaleComboBox::QgsScaleComboBox( QWidget* parent ) : QComboBox( parent ), mScale( 1.0 )
2828
{
2929
updateScales();
3030

0 commit comments

Comments
 (0)
Please sign in to comment.