mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
tiny..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5042 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e93e806dd5
commit
55ef679c8b
11
src/text2.C
11
src/text2.C
@ -163,9 +163,8 @@ LyXFont const LyXText::getFont(Buffer const * buf, Paragraph * par,
|
||||
|
||||
LyXLayout_ptr const & layout = par->layout();
|
||||
|
||||
Paragraph::depth_type par_depth = par->getDepth();
|
||||
// We specialize the 95% common case:
|
||||
if (!par_depth) {
|
||||
if (!par->getDepth()) {
|
||||
if (layout->labeltype == LABEL_MANUAL
|
||||
&& pos < beginningOfMainBody(buf, par)) {
|
||||
// 1% goes here
|
||||
@ -218,9 +217,7 @@ LyXFont const LyXText::getLayoutFont(Buffer const * buf, Paragraph * par) const
|
||||
{
|
||||
LyXLayout_ptr const & layout = par->layout();
|
||||
|
||||
Paragraph::depth_type par_depth = par->getDepth();
|
||||
|
||||
if (!par_depth) {
|
||||
if (!par->getDepth()) {
|
||||
return layout->resfont;
|
||||
}
|
||||
|
||||
@ -232,9 +229,7 @@ LyXFont const LyXText::getLabelFont(Buffer const * buf, Paragraph * par) const
|
||||
{
|
||||
LyXLayout_ptr const & layout = par->layout();
|
||||
|
||||
Paragraph::depth_type par_depth = par->getDepth();
|
||||
|
||||
if (!par_depth) {
|
||||
if (!par->getDepth()) {
|
||||
return layout->reslabelfont;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user