mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:00:37 +00:00
(-size): Don't try to get the size if rep is nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cac2d857fa
commit
181eac6eeb
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-05-27 01:39 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSImage.m (-size): Don't try to get the size if rep is nil.
|
||||
|
||||
2004-05-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTableView.m: (-noteNumberOfRowsChanged)
|
||||
|
|
|
@ -510,7 +510,10 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
{
|
||||
NSImageRep *rep = [self bestRepresentationForDevice: nil];
|
||||
|
||||
if (rep)
|
||||
_size = [rep size];
|
||||
else
|
||||
_size = NSZeroSize;
|
||||
}
|
||||
return _size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue