Explorar o código

Fixed linux/mac failure

Tig hai 1 ano
pai
achega
5dd3db92cb
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Terminal.Gui/Views/NumericUpDown.cs

+ 1 - 2
Terminal.Gui/Views/NumericUpDown.cs

@@ -37,11 +37,10 @@ public class NumericUpDown<T> : View where T : notnull
             throw new InvalidOperationException ("T must be a numeric type that supports addition and subtraction.");
         }
 
-        Increment = (dynamic)1;
-
         // `object` is supported only for AllViewsTester
         if (type != typeof (object))
         {
+            Increment = (dynamic)1;
             Value = (dynamic)0;
         }