Skip to content
Permalink
Browse files

Fix double setExtent() calls

Whenever QgsMapCanvas::setExtent() would be called, the status scale
widget would be updated and cause another setExtent() call

Fixes issues with canvas getting invalid extent when loading projected layer
by mistake as lat/lon layer (scale going crazy)
  • Loading branch information
wonder-sk committed Jun 22, 2016
1 parent 8fcac87 commit c92afcf2c6d7671971b62af1fd83fb1e3c691689
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsstatusbarscalewidget.cpp
@@ -78,7 +78,9 @@ QgsStatusBarScaleWidget::~QgsStatusBarScaleWidget()

void QgsStatusBarScaleWidget::setScale( double scale )
{
mScale->blockSignals( true );
mScale->setScale( scale );
mScale->blockSignals( false );
}

bool QgsStatusBarScaleWidget::isLocked() const

1 comment on commit c92afcf

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn commented on c92afcf Jun 23, 2016

@wonder-sk , ahh, thanks, this fixes zoom last / zoom next actions (whereas the double setExtent() would create a same-zoom-level-change.

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