mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/NSImage.m: Missing -retain inside the method
-compositeToPoint:fromRect:operation:fraction caused a crash inside Opal backend. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
60a1d3d511
commit
fa522babc4
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-09-23 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/NSImage.m: Missing -retain inside the method
|
||||
-compositeToPoint:fromRect:operation:fraction caused a crash
|
||||
inside Opal backend.
|
||||
|
||||
2013-09-22 16:52-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSTableView.h: Add formal protocols for
|
||||
|
|
|
@ -750,7 +750,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
// Set the CTM to the identity matrix with the current translation
|
||||
// and the user space scale factor
|
||||
{
|
||||
NSAffineTransform *backup = [ctxt GSCurrentCTM];
|
||||
NSAffineTransform *backup = [[ctxt GSCurrentCTM] retain];
|
||||
NSAffineTransform *newTransform = [NSAffineTransform transform];
|
||||
NSPoint translation = [backup transformPoint: aPoint];
|
||||
[newTransform translateXBy: translation.x
|
||||
|
@ -765,6 +765,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
fraction: delta];
|
||||
|
||||
[ctxt GSSetCTM: backup];
|
||||
|
||||
[backup release];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue