From 5dd3db92cb364c756d3af920ee8998ec6c260d71 Mon Sep 17 00:00:00 2001 From: Tig Date: Mon, 5 Aug 2024 17:49:48 -0600 Subject: [PATCH] Fixed linux/mac failure --- Terminal.Gui/Views/NumericUpDown.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Terminal.Gui/Views/NumericUpDown.cs b/Terminal.Gui/Views/NumericUpDown.cs index d704c213e..279cfd6cf 100644 --- a/Terminal.Gui/Views/NumericUpDown.cs +++ b/Terminal.Gui/Views/NumericUpDown.cs @@ -37,11 +37,10 @@ public class NumericUpDown : 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; }