From: johanengelen Date: Fri, 30 May 2008 21:13:33 +0000 (+0000) Subject: fix crash in 2geom (already committed to 2geom) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6ba53823278a7e5534addd34e8a32192cca6474;p=inkscape.git fix crash in 2geom (already committed to 2geom) --- diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index 564b8c58a..35c7b76bc 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -58,8 +58,11 @@ Rect Path::boundsFast() const { Rect Path::boundsExact() const { Rect bounds=front().boundsExact(); - for ( const_iterator iter=++begin(); iter != end() ; ++iter ) { - bounds.unionWith(iter->boundsExact()); + const_iterator iter = begin(); + if ( iter != end() ) { + for ( ++iter; iter != end() ; ++iter ) { + bounds.unionWith(iter->boundsExact()); + } } return bounds; }