Browse Source

Fixed Time/DateField crash

Tig 9 months ago
parent
commit
9dcfe02087
2 changed files with 2 additions and 2 deletions
  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;
         }
         }