.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@6135 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-06-05 14:50:19 +00:00
parent 4409c91a79
commit bfba7f185a

View file

@ -334,7 +334,7 @@ ctrl Button {
w.DrawRect(r.left, r.top, sz.cx, sz.cy, :SLtGray);
textsize = GetSmartTextSize(.SetLabel, .SetFont);
py = (sz.cy - textsize.cy) / 2;
if((.SetLabel)[0] == 1)
if(count(.SetLabel) && (.SetLabel)[0] == 1)
w.DrawSmartText(r.left, r.top + py, .SetLabel, .SetFont, :SBlack, sz.cx);
else {
px = (sz.cx - textsize.cx) / 2;