Allow cells to print even when not connected to a window.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21249 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2005-05-22 21:12:08 +00:00
parent 5c4ecb0014
commit eb370a013c
7 changed files with 16 additions and 23 deletions

View file

@ -124,7 +124,7 @@
NSDebugLLog(@"NSImageCell", @"NSImageCell -drawWithFrame");
// do nothing if cell's frame rect is zero
if (NSIsEmptyRect(cellFrame) || ![controlView window])
if (NSIsEmptyRect(cellFrame))
return;
// draw the border if needed
@ -215,7 +215,7 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect)
NSDebugLLog(@"NSImageCell", @"NSImageCell drawInteriorWithFrame called");
if (![controlView window] || !_cell_image)
if (!_cell_image)
return;
// leave room for the frame