Patch attached. -- André Pönitz ............................................. [EMAIL PROTECTED]
? bugg.diff Index: insetcollapsable.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetcollapsable.C,v retrieving revision 1.67 diff -u -p -r1.67 insetcollapsable.C --- insetcollapsable.C 2001/07/12 14:35:38 1.67 +++ insetcollapsable.C 2001/07/13 07:38:27 @@ -428,7 +428,7 @@ void InsetCollapsable::toggleInsetCursor UpdatableInset * InsetCollapsable::getLockingInset() const { UpdatableInset * in = inset.getLockingInset(); - if (&inset == in) + if (const_cast<InsetText *>(&inset) == in) return const_cast<InsetCollapsable *>(this); return in; } Index: insetfloat.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetfloat.C,v retrieving revision 1.27 diff -u -p -r1.27 insetfloat.C --- insetfloat.C 2001/07/12 14:35:38 1.27 +++ insetfloat.C 2001/07/13 07:38:27 @@ -244,7 +244,7 @@ bool InsetFloat::insertInsetAllowed(Inse { if (code == Inset::FLOAT_CODE) return false; - if (inset.getLockingInset() != this) + if (inset.getLockingInset() != const_cast<InsetFloat *>(this)) return inset.insertInsetAllowed(code); if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)) return false;