mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 08:41:46 +00:00
tiny optimisation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16653 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5078b7ab57
commit
186abe83af
@ -242,10 +242,12 @@ bool isFirstInSequence(pit_type par_offset, ParagraphList const & pars)
|
|||||||
|
|
||||||
pit_type dhook_offset = depthHook(par_offset, pars, par.getDepth());
|
pit_type dhook_offset = depthHook(par_offset, pars, par.getDepth());
|
||||||
|
|
||||||
|
if (dhook_offset == par_offset)
|
||||||
|
return true;
|
||||||
|
|
||||||
Paragraph const & dhook = pars[dhook_offset];
|
Paragraph const & dhook = pars[dhook_offset];
|
||||||
|
|
||||||
return dhook_offset == par_offset
|
return dhook.layout() != par.layout()
|
||||||
|| dhook.layout() != par.layout()
|
|
||||||
|| dhook.getDepth() != par.getDepth();
|
|| dhook.getDepth() != par.getDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user