selection = bv_->text->selection.set();
mark_set = bv_->text->selection.mark();
the_locking_inset = bv_->theLockingInset();
selection = bv_->text->selection.set();
mark_set = bv_->text->selection.mark();
the_locking_inset = bv_->theLockingInset();
+ buffer_->resizeInsets(bv_);
+ // I don't think the delete and new are necessary here we just could
+ // call only init! (Jug 20020419)
delete bv_->text;
bv_->text = new LyXText(bv_);
bv_->text->init(bv_);
delete bv_->text;
bv_->text = new LyXText(bv_);
bv_->text->init(bv_);
- buffer_->resizeInsets(bv_);
} else {
// See if we have a text in TextCache that fits
// the new buffer_ with the correct width.
} else {
// See if we have a text in TextCache that fits
// the new buffer_ with the correct width.
2002-04-19 Juergen Vigna <jug@sad.it>
2002-04-19 Juergen Vigna <jug@sad.it>
+ * BufferView_pimpl.C (resizeCurrentBuffer): resize the insets before
+ reinitializing the buffer otherwise row-dimensions may be wrong.
+
* text2.C (cursorDown): don't enter the inset if we came from a row
above and are one row over the inset.
* text2.C (cursorDown): don't enter the inset if we came from a row
above and are one row over the inset.
* insettabular.C (insetUnlock):
(insetButtonPress): call an update before setting the_locking_inset = 0
as otherwise we don't repaint!
* insettabular.C (insetUnlock):
(insetButtonPress): call an update before setting the_locking_inset = 0
as otherwise we don't repaint!
+ (update): reset the cursor position when we changed dimensions as
+ otherwise our cursor may be on the wrong spot.
2002-04-18 Juergen Vigna <jug@sad.it>
2002-04-18 Juergen Vigna <jug@sad.it>
case INIT:
case FULL:
case CELL:
case INIT:
case FULL:
case CELL:
- if (calculate_dimensions_of_cells(bv, font, false))
+ if (calculate_dimensions_of_cells(bv, font, false)) {
break;
case SELECTION:
need_update = FULL;
break;
case SELECTION:
need_update = FULL;