Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove set mShortName in QgsMapLayer constructor
  • Loading branch information
rldhont committed Apr 20, 2016
1 parent e765bb6 commit d4af38b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/qgsmaplayer.cpp
Expand Up @@ -70,9 +70,6 @@ QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
mLayerName = capitaliseLayerName( mLayerOrigName );
QgsDebugMsg( "display name: '" + mLayerName + '\'' );

// Set short name = the first original name
mShortName = lyrname;

// Generate the unique ID of this layer
QDateTime dt = QDateTime::currentDateTime();
mID = lyrname + dt.toString( "yyyyMMddhhmmsszzz" );
Expand Down

2 comments on commit d4af38b

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on d4af38b Apr 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this commit the pal labeling test fails on 2.14 and master. Is this bad luck or is there a relation?

@rldhont
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mShortName is just for QGIS Server. I'll take a look at pal labeling test, but I think there is no relation.

Please sign in to comment.