+2005-12-31 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * text3.C (dispatch): Force refresh if typing into inset changes its
+ metrics
+
2005-12-30 Martin Vermeer <martin.vermeer@hut.fi>
* RowList_fwd.h:
+2005-12-31 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insetcollapsable.C (metrics): reverse patch of 2005-12-16 because
+ of better fix in text3.C.
+
2005-12-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbase.h (noFontChange): refine documentation
2005-12-16 Martin Vermeer <martin.vermeer@hut.fi>
- * insetcollapsable.C: fix "turds" when changing openinlined_
+ * insetcollapsable.C (metrics): fix "turds" when changing openinlined_
2005-12-05 Martin Vermeer <martin.vermeer@hut.fi>
dim = dimensionCollapsed();
if (status() == Open) {
InsetText::metrics(mi, textdim_);
- bool oldopeninlined = openinlined_;
openinlined_ = (textdim_.wid + dim.wid <= mi.base.textwidth);
- if (openinlined_ != oldopeninlined)
- InsetText::metrics(mi, textdim_);
if (openinlined_) {
dim.wid += textdim_.wid;
dim.des = max(dim.des - textdim_.asc + dim.asc, textdim_.des);
// Signals that a full-screen update is required
bool needsUpdate = !(lyxaction.funcHasFlag(cmd.action,
LyXAction::NoUpdate) || singleParUpdate);
- // Remember the old paragraph metric
- Dimension olddim = cur.paragraph().dim();
+ // Remember the old paragraph metric (_outer_ paragraph!)
+ Dimension olddim = cur.bottom().paragraph().dim();
switch (cmd.action) {
if (singleParUpdate)
// Inserting characters does not change par height
- if (cur.paragraph().dim().asc == olddim.asc
- && cur.paragraph().dim().des == olddim.des) {
+ if (cur.bottom().paragraph().dim().height()
+ == olddim.height()) {
// if so, update _only_ this paragraph
cur.bv().update(Update::SinglePar | Update::Force);
} else