Made all initialisation methods on NSWindowController a bit safer. Solves bug #25004.

Don't draw an empty rect in NSCachedImageRep. Fixes the remaining issue of #22282.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27250 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-12-07 21:22:13 +00:00
parent baefb4a5ac
commit 2505fd4eab
3 changed files with 37 additions and 7 deletions

View file

@ -180,6 +180,10 @@
NSAffineTransform *transform;
NSAffineTransformStruct ts;
// Is there anything to draw?
if (NSIsEmptyRect(_rect))
return YES;
transform = [ctxt GSCurrentCTM];
ts = [transform transformStruct];