fixed #259
This commit is contained in:
1 parent
0b79d187ac
commit
99874a418f
16 files changed
+53
-17
No files matched your search
@@ -83,7 +83,7 @@ namespace HandyControl.Expression.Drawing
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((list is List<T> list2) && (factory == null))
|
||||
if ((list is List<T> list2) && factory == null)
|
||||
{
|
||||
list2.AddRange(new T[count - list.Count]);
|
||||
}
|
||||
@@ -91,7 +91,7 @@ namespace HandyControl.Expression.Drawing
|
||||
{
|
||||
for (var i = list.Count; i < count; i++)
|
||||
{
|
||||
list.Add((factory == null) ? default(T) : factory());
|
||||
list.Add(factory == null ? default : factory());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user