+ } else if (!the_locking_inset) {
+ int const n = tabular->GetNumberOfCells();
+ int const id = inset->id();
+ for (int i = 0; i < n; ++i) {
+ InsetText * in = tabular->GetCellInset(i);
+ if (inset == in) {
+ actcell = i;
+ the_locking_inset = in;
+ locked = true;
+ resetPos(bv);
+ return true;
+ }
+ if (in->getInsetFromID(id)) {
+ actcell = i;
+ the_locking_inset = in;
+ locked = true;
+ resetPos(bv);
+ return the_locking_inset->lockInsetInInset(bv, inset);
+ }
+ }