Browse Source

Dont throw on deserialization

Krzysztof Krysiński 3 months ago
parent
commit
d5ed197071

+ 1 - 1
src/PixiEditor.Extensions/FlyUI/Elements/Column.cs

@@ -77,7 +77,7 @@ public class Column : MultiChildLayoutElement, IPropertyDeserializable
     public void DeserializeProperties(ImmutableList<object> values)
     {
         if (values.Count < 2)
-            throw new ArgumentException("Invalid number of properties");
+            return;
 
         int mainAxisAlignment = (int)values[0];
         int crossAxisAlignment = (int)values[1];

+ 1 - 1
src/PixiEditor.Extensions/FlyUI/Elements/Row.cs

@@ -82,7 +82,7 @@ public class Row : MultiChildLayoutElement, IPropertyDeserializable
     public void DeserializeProperties(ImmutableList<object> values)
     {
         if (values.Count < 2)
-            throw new ArgumentException("Invalid number of properties");
+            return;
 
         int mainAxisAlignment = (int)values[0];
         int crossAxisAlignment = (int)values[1];