mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
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:
parent
baefb4a5ac
commit
2505fd4eab
3 changed files with 37 additions and 7 deletions
|
@ -180,6 +180,10 @@
|
|||
NSAffineTransform *transform;
|
||||
NSAffineTransformStruct ts;
|
||||
|
||||
// Is there anything to draw?
|
||||
if (NSIsEmptyRect(_rect))
|
||||
return YES;
|
||||
|
||||
transform = [ctxt GSCurrentCTM];
|
||||
ts = [transform transformStruct];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue