case INIT:
case FULL:
case CELL:
- if (calculate_dimensions_of_cells(bv, font, false))
+ if (calculate_dimensions_of_cells(bv, font, false)) {
need_update = INIT;
+ resetPos(bv);
+ }
break;
case SELECTION:
need_update = FULL;
{
if (the_locking_inset) {
the_locking_inset->insetUnlock(bv);
- the_locking_inset = 0;
updateLocal(bv, CELL, false);
+ the_locking_inset = 0;
}
hideInsetCursor(bv);
oldcell = -1;
if (button == 3) {
if ((ocell != actcell) && the_locking_inset) {
the_locking_inset->insetUnlock(bv);
+ updateLocal(bv, CELL, false);
the_locking_inset = 0;
}
showInsetCursor(bv);
return;
} else if (the_locking_inset) {
the_locking_inset->insetUnlock(bv);
- the_locking_inset = 0;
updateLocal(bv, CELL, false);
+ the_locking_inset = 0;
}
if (button == 2) {
localDispatch(bv, LFUN_PASTESELECTION, "paragraph");