瀏覽代碼

Fixed Time/DateField crash 2

Tig 11 月之前
父節點
當前提交
59396aeb75
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Terminal.Gui/Views/DateField.cs
  2. 1 1
      Terminal.Gui/Views/TimeField.cs

+ 1 - 1
Terminal.Gui/Views/DateField.cs

@@ -167,7 +167,7 @@ public class DateField : TextField
             newPoint = 1;
         }
 
-        //if (newPoint != point)
+        if (newPoint != point)
         {
             CursorPosition = newPoint;
         }

+ 1 - 1
Terminal.Gui/Views/TimeField.cs

@@ -225,7 +225,7 @@ public class TimeField : TextField
             newPoint = 1;
         }
 
-        //if (newPoint != point)
+        if (newPoint != point)
         {
             CursorPosition = newPoint;
         }