Skip to content
Permalink
Browse files
Slight re-wording of the scale widget to match that of the extent cou…
…nterpart
  • Loading branch information
nirvn committed Jan 6, 2022
1 parent 9c75ae7 commit 1527025c63660edc99fe13dc9b96de426fd8d1bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsscalewidget.cpp
@@ -102,7 +102,7 @@ void QgsScaleWidget::menuAboutToShow()

double scale = mCanvas->scale();
QAction *canvasScaleAction = new QAction( QgsApplication::getThemeIcon( QStringLiteral( "/mActionMapIdentification.svg" ) ),
tr( "Current Canvas Scale (1:%1)" ).arg( qgsDoubleToString( scale, 0 ) ), mMenu );
tr( "Use Current Map Canvas Scale (1:%1)" ).arg( qgsDoubleToString( scale, 0 ) ), mMenu );
connect( canvasScaleAction, &QAction::triggered, this, [this, scale] { setScale( scale ); } );
mMenu->addAction( canvasScaleAction );

0 comments on commit 1527025

Please sign in to comment.