tiny optimisation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16653 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-11 18:50:39 +00:00
parent 5078b7ab57
commit 186abe83af

View File

@ -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();
}