diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index cf292a26e4..01a54e106a 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -1272,6 +1272,11 @@ void wxMacCoreGraphicsPathData::Transform( const wxGraphicsMatrixData* matrix ) void wxMacCoreGraphicsPathData::GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *h) const { CGRect bounds = CGPathGetBoundingBox( m_path ) ; + if ( CGRectIsEmpty(bounds) ) + { + bounds = CGRectZero; + } + *x = bounds.origin.x; *y = bounds.origin.y; *w = bounds.size.width;