Skip to content
Permalink
Browse files

Spelling

  • Loading branch information
nyalldawson committed Jan 2, 2021
1 parent 9f8f65d commit e25be9fedae839d29d88f436cb9da081161aeea5
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
  2. +2 −2 src/gui/qgsmapcanvas.cpp
@@ -366,7 +366,7 @@ void QgsLayerTreeViewDefaultActions::zoomToGroup()

void QgsLayerTreeViewDefaultActions::zoomToLayers( QgsMapCanvas *canvas, const QList<QgsMapLayer *> &layers )
{
QgsTemporaryCursorOverride cursorOveride( Qt::WaitCursor );
QgsTemporaryCursorOverride cursorOverride( Qt::WaitCursor );

QgsRectangle extent;
extent.setMinimal();
@@ -1319,7 +1319,7 @@ QgsRectangle QgsMapCanvas::optimalExtentForPointLayer( QgsVectorLayer *layer, co

void QgsMapCanvas::zoomToSelected( QgsVectorLayer *layer )
{
QgsTemporaryCursorOverride cursorOveride( Qt::WaitCursor );
QgsTemporaryCursorOverride cursorOverride( Qt::WaitCursor );

if ( !layer )
{
@@ -1333,7 +1333,7 @@ void QgsMapCanvas::zoomToSelected( QgsVectorLayer *layer )
QgsRectangle rect = layer->boundingBoxOfSelected();
if ( rect.isNull() )
{
cursorOveride.release();
cursorOverride.release();
emit messageEmitted( tr( "Cannot zoom to selected feature(s)" ), tr( "No extent could be determined." ), Qgis::Warning );
return;
}

0 comments on commit e25be9f

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