ide: LayDes Fixed classname issue #1281

git-svn-id: svn://ultimatepp.org/upp/trunk@8972 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-10-03 05:36:34 +00:00
parent 21003c0dbe
commit c5dae09d7b

View file

@ -222,7 +222,7 @@ void LayoutItem::UnknownPaint(Draw& w)
int q = FindProperty("SetLabel");
if(q >= 0 && IsString(~property[q]))
DrawSmartText(w, 0, 0, csize.cx, ToUtf8((WString)~property[q]));
Size tsz = GetTextSize(type, Arial(11));
Size tsz = GetTextSize(type, LayFont());
w.DrawRect(csize.cx - tsz.cx, csize.cy - tsz.cy, tsz.cx, tsz.cy, SColorShadow);
w.DrawText(csize.cx - tsz.cx, csize.cy - tsz.cy, type, LayFont(), SColorLight);
}