Skip to content
Permalink
Browse files
Fix the problem where trying to digitise on an empty map never gave
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: http://svn.osgeo.org/qgis/trunk@5671 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 8, 2006
1 parent a247aa5 commit 1cc1c8750197618c0bed3416d3b89e66a8207181
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgsmapcanvas.cpp
@@ -414,7 +414,10 @@ void QgsMapCanvas::clear()

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

} // zoomFullExtent

0 comments on commit 1cc1c87

Please sign in to comment.