]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.C
Almost fix 'make check'. The only remaining problem is an undefined
[lyx.git] / src / paragraph_funcs.C
index 75a2a5a58d039f58b1fcf99d3e4dd800d4763dbe..4ec57ef3eed6e957a8e90b7da21ed677d4460512 100644 (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();
 }