Skip to content
Permalink
Browse files

Remove some outdated todos

  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 3994c4a commit 5160ad942f68bc585a26d5304263a43c7e47c79f
Showing with 0 additions and 13 deletions.
  1. +0 −13 src/core/layout/qgslayoutitemmap.cpp
@@ -504,10 +504,6 @@ void QgsLayoutItemMap::draw( QgsRenderContext &, const QStyleOptionGraphicsItem

bool QgsLayoutItemMap::writePropertiesToElement( QDomElement &composerMapElem, QDomDocument &doc, const QgsReadWriteContext &context ) const
{
#if 0 //TODO - is this needed?
composerMapElem.setAttribute( QStringLiteral( "id" ), mId );
#endif

if ( mKeepLayerSet )
{
composerMapElem.setAttribute( QStringLiteral( "keepLayerSet" ), QStringLiteral( "true" ) );
@@ -608,14 +604,6 @@ bool QgsLayoutItemMap::writePropertiesToElement( QDomElement &composerMapElem, Q
bool QgsLayoutItemMap::readPropertiesFromElement( const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context )
{
mUpdatesEnabled = false;
#if 0 //TODO
QString idRead = itemElem.attribute( QStringLiteral( "id" ), QStringLiteral( "not found" ) );
if ( idRead != QLatin1String( "not found" ) )
{
mId = idRead.toInt();
updateToolTip();
}
#endif

//extent
QDomNodeList extentNodeList = itemElem.elementsByTagName( QStringLiteral( "Extent" ) );
@@ -1597,7 +1585,6 @@ QPointF QgsLayoutItemMap::layoutMapPosForItem( const QgsAnnotation *annotation )
if ( annotationCrs != crs() )
{
//need to reproject
// todo datum nyall set context
QgsCoordinateTransform t( annotationCrs, crs(), mLayout->project() );
double z = 0.0;
try

0 comments on commit 5160ad9

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