Pārlūkot izejas kodu

Fixed linux/mac failure

Tig 1 gadu atpakaļ
vecāks
revīzija
5dd3db92cb
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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;
         }