make sure that -lXpm is used when linking. Require LYX_PATH_XPM.
(LYX_USE_XFORMS_IMAGE_LOADER): use XPM_LIB here
-
2002-08-14 John Levon <levon@movementarian.org>
* configure.in:
+2002-08-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * text2.C (setCounter): when searching for right label for a
+ caption, make sure to recurse to parent insets (so that a caption
+ in a minipage in a figure float works) (bug #568)
2002-08-19 André Pönitz <poenitz@gmx.net>
// the caption hack:
if (layout->labeltype == LABEL_SENSITIVE) {
- bool isOK (par->inInset() && par->inInset()->owner() &&
- (par->inInset()->owner()->lyxCode() == Inset::FLOAT_CODE));
+ Paragraph * tmppar = par;
+ Inset * in = 0;
+ bool isOK = false;
+ while (tmppar && tmppar->inInset()
+ // the single '=' is intended below
+ && (in = tmppar->inInset()->owner())) {
+ if (in->lyxCode() == Inset::FLOAT_CODE) {
+ isOK = true;
+ break;
+ } else {
+ tmppar = in->parOwner();
+ }
+ }
if (isOK) {
- InsetFloat * tmp = static_cast<InsetFloat*>(par->inInset()->owner());
Floating const & fl
- = floatList.getType(tmp->type());
+ = floatList.getType(static_cast<InsetFloat*>(in)->type());
buf->counters().step(fl.name());