LineEdit fix for CJK in ubuntu

git-svn-id: svn://ultimatepp.org/upp/trunk@1250 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-05-30 20:28:47 +00:00
parent ab131a4c37
commit e735af5799

View file

@ -61,7 +61,7 @@ LineEdit& LineEdit::SetFont(Font f) {
Size LineEdit::GetFontSize() const {
FontInfo fi = font.Info();
return Size(fi.GetAveWidth(), fi.GetHeight());
return Size(max(fi['M'], fi['W']), fi.GetHeight());
}
void LineEdit::Paint0(Draw& w) {