浏览代码

Fixed Time/DateField crash

Tig 11 月之前
父节点
当前提交
9dcfe02087
共有 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;
             newPoint = 1;
         }
         }
 
 
-        if (newPoint != point)
+        //if (newPoint != point)
         {
         {
             CursorPosition = newPoint;
             CursorPosition = newPoint;
         }
         }

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

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