Преглед на файлове

Code cleanup and refactor

Tig преди 10 месеца
родител
ревизия
2f9cf08246
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Terminal.Gui/View/View.Drawing.cs

+ 1 - 1
Terminal.Gui/View/View.Drawing.cs

@@ -101,7 +101,7 @@ public partial class View // Drawing APIs
         if (Margin is { } && Margin?.Thickness != Thickness.Empty)
         {
             // PERFORMANCE: How expensive are these clones?
-            Margin!.CachedClip = GetClip ()!.Clone ();
+            Margin!.CachedClip = GetClip ()?.Clone ();
         }
 
         // We're done drawing