Skip to content
Permalink
Browse files

Make code shorter

  • Loading branch information
mhugent committed Oct 27, 2017
1 parent 0eb7b4e commit 2b5b0008a6a90ab90f05710ee500a792b7e2c885
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgsrasterlayerproperties.cpp
@@ -1033,8 +1033,7 @@ void QgsRasterLayerProperties::apply()
mMetadataFilled = false;
mRasterLayer->setLegendUrlFormat( mLayerLegendUrlFormatComboBox->currentText() );

QString wmsPrintLayer = mWMSPrintLayerLineEdit->text();
if ( !wmsPrintLayer.isEmpty() )
if ( !mWMSPrintLayerLineEdit->text().isEmpty() )
{
mRasterLayer->setCustomProperty( QStringLiteral( "WMSPrintLayer" ), mWMSPrintLayerLineEdit->text() );
}

0 comments on commit 2b5b000

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