Skip to content

Commit

Permalink
Make code shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 27, 2017
1 parent 0eb7b4e commit 2b5b000
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
Expand Down

0 comments on commit 2b5b000

Please sign in to comment.