Revision: 12718 http://sourceforge.net/p/skim-app/code/12718 Author: hofman Date: 2022-01-14 15:51:35 +0000 (Fri, 14 Jan 2022) Log Message: ----------- No need for local variable
Modified Paths: -------------- trunk/SKPresentationOptionsSheetController.m Modified: trunk/SKPresentationOptionsSheetController.m =================================================================== --- trunk/SKPresentationOptionsSheetController.m 2022-01-14 14:55:21 UTC (rev 12717) +++ trunk/SKPresentationOptionsSheetController.m 2022-01-14 15:51:35 UTC (rev 12718) @@ -391,7 +391,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if (context == &SKTransitionPropertiesObservationContext) { - SKTransitionInfo *info = (SKTransitionInfo *)object; id newValue = [change objectForKey:NSKeyValueChangeNewKey]; id oldValue = [change objectForKey:NSKeyValueChangeOldKey]; @@ -399,7 +398,7 @@ if ([oldValue isEqual:[NSNull null]]) oldValue = nil; if ((newValue || oldValue) && [newValue isEqual:oldValue] == NO) - [[[self undoManager] prepareWithInvocationTarget:self] setValue:oldValue forKey:keyPath ofTransition:info]; + [[[self undoManager] prepareWithInvocationTarget:self] setValue:oldValue forKey:keyPath ofTransition:object]; } else { [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit