mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-22 06:05:33 -06:00
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:
parent
ab131a4c37
commit
e735af5799
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ LineEdit& LineEdit::SetFont(Font f) {
|
||||||
|
|
||||||
Size LineEdit::GetFontSize() const {
|
Size LineEdit::GetFontSize() const {
|
||||||
FontInfo fi = font.Info();
|
FontInfo fi = font.Info();
|
||||||
return Size(fi.GetAveWidth(), fi.GetHeight());
|
return Size(max(fi['M'], fi['W']), fi.GetHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
void LineEdit::Paint0(Draw& w) {
|
void LineEdit::Paint0(Draw& w) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue