Skip to content
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: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 8, 2006
1 parent 50b39b6 commit 1f49249
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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

0 comments on commit 1f49249

Please sign in to comment.