// 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;
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
#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);
if (&pars_[tmppit] == owner)
break;
}
+#else
+ ++tmppit;
#endif
}