mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@6135 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4409c91a79
commit
bfba7f185a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue