Skip to content
Permalink
Browse files

Always set coordinate system, independent of any symbology style sett…

…ings. Fixes #1604

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11406 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Aug 17, 2009
1 parent b730994 commit 39d1f26fe35c4633cd8865582a44c864ce870919
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/qgsvectorlayer.cpp
@@ -115,6 +115,9 @@ QgsVectorLayer::QgsVectorLayer( QString vectorLayerPath,
}
if ( mValid )
{
// Always set crs
setCoordinateSystem();

// check if there is a default style / propertysheet defined
// for this layer and if so apply it
//
@@ -124,15 +127,13 @@ QgsVectorLayer::QgsVectorLayer( QString vectorLayerPath,
loadDefaultStyle( defaultLoadedFlag );
if ( !defaultLoadedFlag )
{
setCoordinateSystem();
// add single symbol renderer as default
QgsSingleSymbolRenderer *renderer = new QgsSingleSymbolRenderer( geometryType() );
setRenderer( renderer );
}
}
else // Otherwise use some very basic defaults
{
setCoordinateSystem();
// add single symbol renderer as default
QgsSingleSymbolRenderer *renderer = new QgsSingleSymbolRenderer( geometryType() );
setRenderer( renderer );

0 comments on commit 39d1f26

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