+2001-04-20 Juergen Vigna <jug@sad.it>
+
+ * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
+
2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* insetquotes.C (Latex): improve the guard against
} else if (!collapsed) {
if (!bv->lockInset(this))
return;
- inset.Edit(bv, xp, yp+(top_baseline - inset.y()), button);
+ inset.Edit(bv, xp, yp + (top_baseline - inset.y()), button);
}
}
inset_boundary = false;
inset_par = 0;
old_par = 0;
- if (!checkAndActivateInset(bv, x, y, button))
+ int tmp_y = (y < 0)?0:y;
+ if (!checkAndActivateInset(bv, x, tmp_y, button))
TEXT(bv)->SetCursorFromCoordinates(bv, x - drawTextXOffset,
y + insetAscent);
TEXT(bv)->sel_cursor = TEXT(bv)->cursor;
return;
}
}
- if (!inset && (button == 2)) {
+ if (!inset) { // && (button == 2)) {
bool paste_internally = false;
if ((button == 2) && TEXT(bv)->selection) {
LocalDispatch(bv, LFUN_COPY, "");