]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Fix #1736
[lyx.git] / src / text2.C
index 33c31c8217226314bbdc8784914473bfc172b06f..80517c9934e81edf5c02e1cc87b6f1ad19460db3 100644 (file)
@@ -831,7 +831,7 @@ void LyXText::setCounter(Buffer const & buf, par_type pit)
 #if 0
 /* I think this code is supposed to be useful when one has a caption
  * in a minipage in a figure inset. We need to go up to be able to see
- * that the caption sould use "Figure" as label
+ * that the caption should use "Figure" as label
  */
                                else {
                                        Paragraph const * owner = &ownerPar(buf, in);
@@ -840,6 +840,8 @@ void LyXText::setCounter(Buffer const & buf, par_type pit)
                                                if (&pars_[tmppit] == owner)
                                                        break;
                                }
+#else
+                               ++tmppit;
 #endif
                        }