GridCtrl: Cosmetics..

git-svn-id: svn://ultimatepp.org/upp/trunk@4334 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2011-12-20 20:27:41 +00:00
parent 144353be5e
commit dcd9130e23
2 changed files with 2 additions and 5 deletions

View file

@ -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;

View file

@ -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;