Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa giving error: <Error>: doClip: empty path

Cocoa gives error:

Thu Jun 10 19:13:56 myComputer.local myApp[####] <Error>: doClip: empty path.

But I don't have this function anywhere in my code (can't find by searching in frameworks / project)... Seems a lot of people complain about this because it goes into the console logs, but couldn't find any reason given as to what causes it on a progmatic level.

Any thoughts as to what the problem is?

like image 852
BadPirate Avatar asked Dec 09 '22 15:12

BadPirate


1 Answers

I would just check to see if the path is empty using: CGContextIsPathEmpty(CGContextRef ctx)

Example:

if(!CGContextIsPathEmpty(c))
    CGContextClip(c);
like image 105
csb Avatar answered Dec 28 '22 19:12

csb