From dcd9130e23ee97ffc5c76ea154d8d5f4fbbc146f Mon Sep 17 00:00:00 2001 From: unodgs Date: Tue, 20 Dec 2011 20:27:41 +0000 Subject: [PATCH] GridCtrl: Cosmetics.. git-svn-id: svn://ultimatepp.org/upp/trunk@4334 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/GridCtrl/GridBase.cpp | 5 +---- uppsrc/GridCtrl/GridCtrl.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/uppsrc/GridCtrl/GridBase.cpp b/uppsrc/GridCtrl/GridBase.cpp index c255f1e7e..675e0a799 100644 --- a/uppsrc/GridCtrl/GridBase.cpp +++ b/uppsrc/GridCtrl/GridBase.cpp @@ -73,15 +73,12 @@ GridCtrl::ItemRect& GridCtrl::ItemRect::Size(int n, bool hv) { hidden = n == 0; - n = hv ? Ctrl::HorzLayoutZoom(n) : Ctrl::VertLayoutZoom(n); - if(!hidden) { + n = hv ? Ctrl::HorzLayoutZoom(n) : Ctrl::VertLayoutZoom(n); if(n < min) { n = min; ismin = true; } if(n > max) { n = max; ismax = true; } } - else - n = 0; size = nsize = n; return *this; diff --git a/uppsrc/GridCtrl/GridCtrl.h b/uppsrc/GridCtrl/GridCtrl.h index e62c621fc..3a1c34415 100644 --- a/uppsrc/GridCtrl/GridCtrl.h +++ b/uppsrc/GridCtrl/GridCtrl.h @@ -515,7 +515,7 @@ class GridCtrl : public Ctrl { min = 5; max = 1000000; pos = npos = 0; - id = uid = n = 0; + id = uid = n = 0; prop = 1; size = nsize = 0; tsize = 0;