浏览代码

Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop

Tig 1 月之前
父节点
当前提交
bf977e6174
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      Terminal.Gui/ViewBase/View.Drawing.Scheme.cs
  2. 2 2
      Terminal.Gui/ViewBase/View.Layout.cs

+ 2 - 2
Terminal.Gui/ViewBase/View.Drawing.Scheme.cs

@@ -26,7 +26,7 @@ public partial class View
         set
         {
             CWPPropertyHelper.ChangeProperty (
-                                              _schemeName,
+                                              ref _schemeName,
                                               value,
                                               OnSchemeNameChanging,
                                               SchemeNameChanging,
@@ -209,7 +209,7 @@ public partial class View
     public bool SetScheme (Scheme? scheme)
     {
         return CWPPropertyHelper.ChangeProperty (
-                                                 _scheme,
+                                                 ref _scheme,
                                                  scheme,
                                                  OnSettingScheme,
                                                  SchemeChanging,

+ 2 - 2
Terminal.Gui/ViewBase/View.Layout.cs

@@ -328,7 +328,7 @@ public partial class View // Layout APIs
         set
         {
             CWPPropertyHelper.ChangeProperty (
-                                              _height,
+                                              ref _height,
                                               value,
                                               OnHeightChanging,
                                               HeightChanging,
@@ -416,7 +416,7 @@ public partial class View // Layout APIs
         set
         {
             CWPPropertyHelper.ChangeProperty (
-                                              _width,
+                                              ref _width,
                                               value,
                                               OnWidthChanging,
                                               WidthChanging,