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:
larsl 2005-04-16 15:07:01 +00:00
parent f3d9883f02
commit 29229c25ef
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ QgsMapLayer::QgsMapLayer(int type,
QString source)
: internalName(lyrname),
ID(""),
mCoordinateTransform(NULL),
layerType(type),
dataSource(source),
m_legendItem(0),

View File

@ -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),