mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Changed QgsMapLayer to initialise mCoordinateTransform to NULL instead of a random value, changed QgsVectorLayer to initialise valid to false (it might be initialised to false by default on some compilers, but it doesn't hurt to do it explicitly). These changes fixes project loading for me.
git-svn-id: http://svn.osgeo.org/qgis/trunk@3168 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f3d9883f02
commit
29229c25ef
@ -42,6 +42,7 @@ QgsMapLayer::QgsMapLayer(int type,
|
||||
QString source)
|
||||
: internalName(lyrname),
|
||||
ID(""),
|
||||
mCoordinateTransform(NULL),
|
||||
layerType(type),
|
||||
dataSource(source),
|
||||
m_legendItem(0),
|
||||
|
@ -107,6 +107,7 @@ QgsVectorLayer::QgsVectorLayer(QString vectorLayerPath,
|
||||
: QgsMapLayer(VECTOR, baseName, vectorLayerPath),
|
||||
tabledisplay(0),
|
||||
providerKey(providerKey),
|
||||
valid(false),
|
||||
m_renderer(0),
|
||||
mLabel(0),
|
||||
m_propertiesDialog(0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user