diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 01a54e106a..5569691a93 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -1240,7 +1240,10 @@ void wxMacCoreGraphicsPathData::AddPath( const wxGraphicsPathData* path ) // closes the current subpath void wxMacCoreGraphicsPathData::CloseSubpath() { - CGPathCloseSubpath( m_path ); + if ( !CGPathIsEmpty(m_path) ) + { + CGPathCloseSubpath( m_path ); + } } // gets the last point of the current path, (0,0) if not yet set