Skip to content

Commit 045695a

Browse files
committed
Do not add undo command if scale has not changed
1 parent 7cb2315 commit 045695a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/composer/qgscomposermapwidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ void QgsComposerMapWidget::on_mScaleLineEdit_editingFinished()
306306
return;
307307
}
308308

309+
if ( qRound( scaleDenominator ) == qRound( mComposerMap->scale() ) )
310+
return;
311+
309312
mComposerMap->beginCommand( tr( "Map scale changed" ) );
310313
mComposerMap->setNewScale( scaleDenominator );
311314
mComposerMap->endCommand();

0 commit comments

Comments
 (0)