Skip to content
Permalink
Browse files

fix translation string (followup 9d5d49e)

  • Loading branch information
jef-n committed Aug 22, 2018
1 parent 6b5d645 commit a3cc83a3991116e7448c5ac2c2650a10b1c1203a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgstilescalewidget.cpp
@@ -106,7 +106,7 @@ void QgsTileScaleWidget::mSlider_valueChanged( int value )
QgsDebugMsg( QString( "slider released at %1: %2" ).arg( mSlider->value() ).arg( mResolutions.at( mSlider->value() ) ) );

// Invert value in tooltip to match expectation (i.e. 0 = zoomed out, maximum = zoomed in)
QToolTip::showText( QCursor::pos(), tr( "Zoom level: %1" ).arg( mSlider->maximum() - value ) + "\n" + tr( "Resolution: %2" ).arg( mResolutions.at( value ) ), this );
QToolTip::showText( QCursor::pos(), tr( "Zoom level: %1" ).arg( mSlider->maximum() - value ) + "\n" + tr( "Resolution: %1" ).arg( mResolutions.at( value ) ), this );
mMapCanvas->zoomByFactor( mResolutions.at( mSlider->value() ) / mMapCanvas->mapUnitsPerPixel() );
}

0 comments on commit a3cc83a

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