소스 검색

This is already a value copy (struct)

dodexahedron 1 년 전
부모
커밋
deaa7563fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;