Browse Source

Code cleanup and refactor

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