+2002-07-26 Juergen Vigna <jug@sad.it>
+
+ * lyxfind.C (LyXReplace): we have to check better if the returned
+ text is not of theLockingInset()->getLockingInset().
+
2002-07-25 Juergen Vigna <jug@sad.it>
* lyxfind.C (LyXReplace): don't replace if we don't get the
+2002-07-26 Juergen Vigna <jug@sad.it>
+
+ * insettabular.C (searchForward): check for lastcell if we
+ had a locking inset.
+
2002-07-25 Juergen Vigna <jug@sad.it>
* insettabular.C (insetMotionNotify): Don't update the screen
updateLocal(bv, CELL, false);
return true;
}
+ if (tabular->IsLastCell(actcell))
+ return false;
+ ++actcell;
}
InsetText * inset = tabular->GetCellInset(actcell);
if (inset->searchForward(bv, str, cs, mw)) {
#include "buffer.h"
#include "debug.h"
#include "gettext.h"
+#include "insets/insettext.h"
using lyx::pos_type;
int replace_count = 0;
do {
text = bv->getLyXText();
- if (!bv->theLockingInset() || text != bv->text) {
+ // We have to do this check only because mathed insets don't
+ // return their own LyXText but the LyXText of it's parent!
+ if (!bv->theLockingInset() ||
+ ((text != bv->text) &&
+ (text->inset_owner == text->inset_owner->getLockingInset())))
+ {
bv->hideCursor();
bv->update(text, BufferView::SELECT|BufferView::FITCUR);
bv->toggleSelection(false);