mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
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:
parent
5c4ecb0014
commit
eb370a013c
7 changed files with 16 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue