diff --git a/AppKit/CoreGraphics/CGContext.j b/AppKit/CoreGraphics/CGContext.j index a67d7b200..883ef2241 100644 --- a/AppKit/CoreGraphics/CGContext.j +++ b/AppKit/CoreGraphics/CGContext.j @@ -321,6 +321,16 @@ function CGContextClosePath(aContext) CGPathCloseSubpath(aContext.path); } +/*! + Return YES if the current path in the given context is empty. + @param aContext the CGContext to examine + @return BOOL +*/ +function CGContextIsPathEmpty(aContext) +{ + return (!aContext.path || CGPathIsEmpty(aContext.path)); +} + /*! Moves the current location of aContext to the given x and y coordinates @param aContext the CGContext to move