mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 09:10:42 +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
3ee6f49b1a
commit
7cd5676bb5
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>
|
2013-09-22 16:52-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Headers/AppKit/NSTableView.h: Add formal protocols for
|
* 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
|
// Set the CTM to the identity matrix with the current translation
|
||||||
// and the user space scale factor
|
// and the user space scale factor
|
||||||
{
|
{
|
||||||
NSAffineTransform *backup = [ctxt GSCurrentCTM];
|
NSAffineTransform *backup = [[ctxt GSCurrentCTM] retain];
|
||||||
NSAffineTransform *newTransform = [NSAffineTransform transform];
|
NSAffineTransform *newTransform = [NSAffineTransform transform];
|
||||||
NSPoint translation = [backup transformPoint: aPoint];
|
NSPoint translation = [backup transformPoint: aPoint];
|
||||||
[newTransform translateXBy: translation.x
|
[newTransform translateXBy: translation.x
|
||||||
|
@ -765,6 +765,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
||||||
fraction: delta];
|
fraction: delta];
|
||||||
|
|
||||||
[ctxt GSSetCTM: backup];
|
[ctxt GSSetCTM: backup];
|
||||||
|
|
||||||
|
[backup release];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue