mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Simplify code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f2011d0d20
commit
99a9d3dd69
@ -244,11 +244,9 @@ int TextMetrics::rightMargin(pit_type const pit) const
|
|||||||
|
|
||||||
void TextMetrics::applyOuterFont(Font & font) const
|
void TextMetrics::applyOuterFont(Font & font) const
|
||||||
{
|
{
|
||||||
Font lf(font_);
|
FontInfo lf(font_.fontInfo());
|
||||||
lf.fontInfo().reduce(bv_->buffer().params().getFont().fontInfo());
|
lf.reduce(bv_->buffer().params().getFont().fontInfo());
|
||||||
Font tmp(font);
|
font.fontInfo().realize(lf);
|
||||||
tmp.fontInfo().realize(lf.fontInfo());
|
|
||||||
font = tmp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user