mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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());
|
||||
|
||||
if (dhook_offset == par_offset)
|
||||
return true;
|
||||
|
||||
Paragraph const & dhook = pars[dhook_offset];
|
||||
|
||||
return dhook_offset == par_offset
|
||||
|| dhook.layout() != par.layout()
|
||||
return dhook.layout() != par.layout()
|
||||
|| dhook.getDepth() != par.getDepth();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user