mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:50:47 +00:00
make non-standard images persist oafter theme has unloaded, in case anything
in the gui is still using them. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29851 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f3482e73a
commit
949deb4d7a
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
* Source/NSPasteboard.m: ditto
|
||||
* Source/GSTheme.m: Rewrite method replacement code to use new runtime
|
||||
API... turns out to be rather simpler than using the old API.
|
||||
Add safety measure for themes which load non-standard images.
|
||||
|
||||
2010-03-04 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
|
|
|
@ -497,8 +497,11 @@ typedef struct {
|
|||
* and the theme is unloaded, what happens when the
|
||||
* app tries to draw using the proxy to the unloaded
|
||||
* image?
|
||||
* To avoid that possibility, we save the new image
|
||||
* as if it were the old one ... so when the theme is
|
||||
* unloaded the old image persists.
|
||||
*/
|
||||
NSLog(@"Help, could not load image '%@'", imageName);
|
||||
[_oldImages setObject: image forKey: imageName];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue