mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Developing new draw
git-svn-id: svn://ultimatepp.org/upp/trunk@1362 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4219da1896
commit
d1c50c8278
2 changed files with 6 additions and 3 deletions
|
|
@ -651,7 +651,7 @@ int ColumnList::RoundedCy()
|
|||
Rect r = GetRect();
|
||||
Rect rr = r;
|
||||
frame->FrameLayout(r);
|
||||
return r.Height() / cy * cy + rr.Height() - r.Height();
|
||||
return (cy ? r.Height() / cy * cy : 0) + rr.Height() - r.Height();
|
||||
}
|
||||
|
||||
void ColumnList::FrameLayout(Rect& r)
|
||||
|
|
|
|||
|
|
@ -398,9 +398,12 @@ void RTFEncoder::PutHeader()
|
|||
Group fnt(this, "f", i);
|
||||
int fn = used_faces[i];
|
||||
dword info = Font::GetFaceInfo(fn);
|
||||
if(info & Font::SYMBOLTYPE)
|
||||
#ifdef PLATFORM_WIN32
|
||||
if(fn == Font::SYMBOL)
|
||||
Command("ftech");
|
||||
else if(info & Font::FIXEDPITCH)
|
||||
else
|
||||
#endif
|
||||
if(info & Font::FIXEDPITCH)
|
||||
Command("fmodern");
|
||||
else if(fn == Font::ROMAN)
|
||||
Command("froman");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue