Release 1.2.26

This commit is contained in:
Gregory John Casamento 2020-04-14 14:46:54 -04:00
commit 2c2fb3a9ef
2 changed files with 14 additions and 5 deletions

View file

@ -6,6 +6,12 @@
* NEWS
* Version: 1.2.26
2020-04-14 Riccardo Mottola <rm@gnu.org>
* Palettes/2Controls/GormProgressIndicatorAttributesInspector.m
Cast to NSProgressIndicator so correct isVertical method is choosen by
compiler. Add check before casting.
2020-03-29 Fred Kiefer <FredKiefer@gmx.de>
* GormCore/GormDocument.m: Remove NSNibConnector duplicating code

View file

@ -1,7 +1,7 @@
/*
GormProgressIndicatorAttributesInspector.m
Copyright (C) 2001-2005 Free Software Foundation, Inc.
Copyright (C) 2001-2020 Free Software Foundation, Inc.
Author: Adam Fedor <fedor@gnu.org>
Laurent Julliard <laurent@julliard-online.org>
@ -94,10 +94,13 @@
{
if ( object == nil )
return;
[indeterminate setState: [object isIndeterminate]?NSOnState:NSOffState];
[vertical setState: [object isVertical] ? NSOnState:NSOffState];
[minValue setIntValue: [object minValue]];
[maxValue setIntValue: [object maxValue]];
if ( ![object isKindOfClass:[NSProgressIndicator class]] )
NSLog ( @"GormNSProgressIndicatorInspector: Unexpected class of object; %@", [object class]);
[indeterminate setState: [(NSProgressIndicator *)object isIndeterminate]?NSOnState:NSOffState];
[vertical setState: [(NSProgressIndicator *)object isVertical] ? NSOnState:NSOffState];
[minValue setIntValue: [(NSProgressIndicator *)object minValue]];
[maxValue setIntValue: [(NSProgressIndicator *)object maxValue]];
[super revert:sender];
}