Skip to content
Permalink
Browse files

Remove leftover code

  • Loading branch information
m-kuhn committed Mar 10, 2019
1 parent f4d5788 commit dd003dab3b3d3e5856bafaa20be013de9b88bcfd
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/core/qgspallabeling.cpp
@@ -894,14 +894,6 @@ void QgsPalLayerSettings::readXml( QDomElement &elem, const QgsReadWriteContext
geometryGeneratorEnabled = placementElem.attribute( QStringLiteral( "geometryGeneratorEnabled" ) ).toInt();
geometryGeneratorType = enumValueToKey( placementElem.attribute( QStringLiteral( "geometryGeneratorType" ) ), QgsWkbTypes::PointGeometry );

#if 0
const QMetaEnum metaEnum( QMetaEnum::fromType<QgsWkbTypes::GeometryType>() );
bool ok;
geometryGeneratorType = static_cast<QgsWkbTypes::GeometryType>( metaEnum.keyToValue( placementElem.attribute( QStringLiteral( "geometryGeneratorType" ) ).toUtf8().constData(), &ok ) );
if ( !ok )
geometryGeneratorType = QgsWkbTypes::GeometryType::PointGeometry;
#endif

// rendering
QDomElement renderingElem = elem.firstChildElement( QStringLiteral( "rendering" ) );

0 comments on commit dd003da

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