Skip to content


Fix the problem where trying to digitise on an empty map never gave
Browse files Browse the repository at this point in the history
visible features. ZoomFullExtent now only does that if the 'full
extent' is not an empty extent (zero width/height). This was possibly
part of the problem in ticket #219

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 8, 2006
1 parent a247aa5 commit 1cc1c87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -414,7 +414,10 @@ void QgsMapCanvas::clear()

void QgsMapCanvas::zoomFullExtent()
QgsRect extent = fullExtent();
// If the full extent is an empty set, don't do the zoom
if (!extent.isEmpty())

} // zoomFullExtent
Expand Down

0 comments on commit 1cc1c87

Please sign in to comment.