From 9a89d4c65bcafe13fcb9c8cfc8b1b704b4e9ddc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Mon, 30 Apr 2012 00:33:13 +0000 Subject: [PATCH] [GB.FORM] * BUG: The last column of a GridView with AutoResize set is not frozen anymore when the number of columns grows. git-svn-id: svn://localhost/gambas/trunk@4694 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- comp/src/gb.form/.project | 1 - comp/src/gb.form/.src/GridView/_GridView_Columns.class | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.form/.project b/comp/src/gb.form/.project index a57a7f00b..09b32df44 100644 --- a/comp/src/gb.form/.project +++ b/comp/src/gb.form/.project @@ -13,7 +13,6 @@ Environment="GB_GUI=gb.gtk" TabSize=2 Translate=1 Language=en -Type=Component Maintainer=David Villalobos Cambronero Vendor=Princeton Address=david_villalobos_c@yahoo.com diff --git a/comp/src/gb.form/.src/GridView/_GridView_Columns.class b/comp/src/gb.form/.src/GridView/_GridView_Columns.class index 7d7fae5ec..09d867e5d 100644 --- a/comp/src/gb.form/.src/GridView/_GridView_Columns.class +++ b/comp/src/gb.form/.src/GridView/_GridView_Columns.class @@ -43,6 +43,7 @@ Private Sub Count_Write(Value As Integer) If Error Then Error.Raise("Bad argument") If Value > iOldCount Then + If GetView().AutoResize And If iOldCount Then $aColumns[iOldCount - 1]._W = 0 For I = iOldCount To Value - 1 $aColumns[I] = New _GridView_Column As "Column" $aColumns[I]._Column = I