]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Fix #1736
[lyx.git] / src / text2.C
index 129ac6aa1276fda0a8e42233b39fb3756961d121..80517c9934e81edf5c02e1cc87b6f1ad19460db3 100644 (file)
@@ -103,7 +103,7 @@ bool LyXText::isMainText() const
 
 
 // takes absolute x,y coordinates
-InsetBase * LyXText::checkInsetHit(int x, int y) const 
+InsetBase * LyXText::checkInsetHit(int x, int y) const
 {
        par_type pit;
        par_type end;
@@ -822,7 +822,7 @@ void LyXText::setCounter(Buffer const & buf, par_type pit)
                                    in->lyxCode() == InsetBase::WRAP_CODE) {
                                        isOK = true;
                                        break;
-                               } 
+                               }
 #ifdef WITH_WARNINGS
 #warning replace this code by something that works
 // This code does not work because we have currently no way to move up
@@ -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
                        }