summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2014-12-07 17:12:40 +0100
committerJan D <jan.h.d@swipnet.se>2014-12-07 17:12:40 +0100
commitf3a685812a408968a24dd8ca97fdfae8ef266037 (patch)
tree5341e8b6fde93698d4825ec07a779c2375bc2727 /src/nsimage.m
parent2b53560c75b117452c047a7ac0d00f06266b8f8d (diff)
downloademacs-f3a685812a408968a24dd8ca97fdfae8ef266037.tar.gz
Fixes: debbugs:19133
* nsimage.m (setPixmapData): Make bmRep local so class member is not set.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index 7b67da015af..640dfcbc113 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -351,7 +351,7 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
{
if ([rep respondsToSelector: @selector (getBitmapDataPlanes:)])
{
- bmRep = (NSBitmapImageRep *) rep;
+ NSBitmapImageRep *bmRep = (NSBitmapImageRep *) rep;
if ([bmRep numberOfPlanes] >= 3)
[bmRep getBitmapDataPlanes: pixmapData];