From c5dae09d7bf20e4a841d3fd4b3f37bfd5872f337 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 3 Oct 2015 05:36:34 +0000 Subject: [PATCH] ide: LayDes Fixed classname issue #1281 git-svn-id: svn://ultimatepp.org/upp/trunk@8972 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/LayDes/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/ide/LayDes/item.cpp b/uppsrc/ide/LayDes/item.cpp index 488a561b7..6e1c9fb93 100644 --- a/uppsrc/ide/LayDes/item.cpp +++ b/uppsrc/ide/LayDes/item.cpp @@ -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); }