mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 22:11:18 +00:00
Fixed: attributes of the listDelegate of a CPComboBox could crash cappuccino
This commit is contained in:
1 parent
46a0ce8e98
commit
0f4a938dfc
1 file changed
+7
-4
+7
-4
@@ -160,7 +160,7 @@ var CPComboBoxTextSubview = @"text",
|
||||
|
||||
- (void)setIntercellSpacing:(CGSize)aSize
|
||||
{
|
||||
if (!aSize || (_intercellSpacing && CGSizeEqualToSize(aSize, _intercellSpacing)))
|
||||
if (_intercellSpacing && CGSizeEqualToSize(aSize, _intercellSpacing))
|
||||
return;
|
||||
|
||||
_intercellSpacing = aSize;
|
||||
@@ -408,9 +408,12 @@ var CPComboBoxTextSubview = @"text",
|
||||
[_listDelegate setFont:[self font]];
|
||||
[_listDelegate setAlignment:[self alignment]];
|
||||
|
||||
[self setHasVerticalScroller:_hasVerticalScroller];
|
||||
[self setIntercellSpacing:_intercellSpacing];
|
||||
[self setItemHeight:_itemHeight];
|
||||
[[_listDelegate scrollView] setHasVerticalScroller:_hasVerticalScroller];
|
||||
|
||||
if (_intercellSpacing)
|
||||
[[_listDelegate tableView] setIntercellSpacing:_intercellSpacing];
|
||||
|
||||
[[_listDelegate tableView] setRowHeight:_itemHeight];
|
||||
}
|
||||
|
||||
- (void)_addObserversForListDelegate:(_CPPopUpList)aDelegate
|
||||
|
||||
Reference in new issue
Block a user