mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 13:00:59 +00:00
Actually allocate a NSMutableArray, since that is the expected return type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6e3a6dc25d
commit
0e7b475917
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2016-03-21 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSImage.m
|
||||||
|
Actually allocate a NSMutableArray, since that is the expected return type.
|
||||||
|
|
||||||
2016-03-10 Riccardo Mottola <rm@gnu.org>
|
2016-03-10 Riccardo Mottola <rm@gnu.org>
|
||||||
|
|
||||||
* Source/NSWorkspace.m
|
* Source/NSWorkspace.m
|
||||||
|
|
|
@ -1606,7 +1606,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
|
||||||
count = [_reps count];
|
count = [_reps count];
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
return [NSArray array];
|
return [NSMutableArray array];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1623,7 +1623,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [NSArray arrayWithObjects: repList count: j];
|
return [NSMutableArray arrayWithObjects: repList count: j];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue