Skip to content
Permalink
Browse files

Extend extent history to 100 entries

  • Loading branch information
uclaros authored and nyalldawson committed Sep 19, 2020
1 parent ae67b9e commit bc6ed9590d18359a4ce9886b44a60632c19ad1e6
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/gui/qgsmapcanvas.cpp
@@ -1090,8 +1090,6 @@ void QgsMapCanvas::setExtent( const QgsRectangle &r, bool magnified )
}
emit extentsChanged();
updateScale();
if ( mLastExtent.size() > 20 )
mLastExtent.removeAt( 0 );

//clear all extent items after current index
for ( int i = mLastExtent.size() - 1; i > mLastExtentIndex; i-- )
@@ -1101,8 +1099,8 @@ void QgsMapCanvas::setExtent( const QgsRectangle &r, bool magnified )

mLastExtent.append( extent() );

// adjust history to no more than 20
if ( mLastExtent.size() > 20 )
// adjust history to no more than 100
if ( mLastExtent.size() > 100 )
{
mLastExtent.removeAt( 0 );
}

0 comments on commit bc6ed95

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