Browse Source

This is already a value copy (struct)

dodexahedron 1 year ago
parent
commit
deaa7563fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Drawing/LineCanvas.cs

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

@@ -95,7 +95,7 @@ public class LineCanvas : IDisposable
                     bounds.Height = 1;
                 }
 
-                _cachedBounds = new Rect (bounds.X, bounds.Y, bounds.Width, bounds.Height);
+                _cachedBounds = bounds;
             }
 
             return _cachedBounds;