mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fixed changed-status for collapsable insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2836 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
31baf131cb
commit
b64fe15c3e
@ -1039,7 +1039,7 @@ void BufferView::Pimpl::update(LyXText * text, BufferView::UpdateCodes f)
|
||||
|
||||
if (text->inset_owner) {
|
||||
text->inset_owner->setUpdateStatus(bv_, InsetText::NONE);
|
||||
updateInset(text->inset_owner, true);
|
||||
updateInset(text->inset_owner, false);
|
||||
} else {
|
||||
update();
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-03 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* BufferView_pimpl.C (update): don't change "dirty" status in
|
||||
updateInset call.
|
||||
|
||||
2001-10-03 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* WorkArea.C (c-tor): re-position version string slightly.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-10-03 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* insetert.C: ditto
|
||||
|
||||
* insetcollapsable.C: change updateInset calls to not tell BV that
|
||||
we have changed status.
|
||||
|
||||
2001-10-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* insettabular.C (deletable): make const
|
||||
|
@ -243,7 +243,7 @@ void InsetCollapsable::edit(BufferView * bv, int xp, int yp,
|
||||
first_after_edit = true;
|
||||
if (!bv->lockInset(this))
|
||||
return;
|
||||
bv->updateInset(this, true);
|
||||
bv->updateInset(this, false);
|
||||
inset.edit(bv);
|
||||
} else {
|
||||
if (!bv->lockInset(this))
|
||||
@ -271,7 +271,7 @@ void InsetCollapsable::edit(BufferView * bv, bool front)
|
||||
if (!bv->lockInset(this))
|
||||
return;
|
||||
inset.setUpdateStatus(bv, InsetText::FULL);
|
||||
bv->updateInset(this, true);
|
||||
bv->updateInset(this, false);
|
||||
inset.edit(bv, front);
|
||||
} else {
|
||||
if (!bv->lockInset(this))
|
||||
@ -334,11 +334,11 @@ void InsetCollapsable::insetButtonRelease(BufferView * bv,
|
||||
// should not be called on inset open!
|
||||
// inset.insetButtonRelease(bv, 0, 0, button);
|
||||
inset.setUpdateStatus(bv, InsetText::FULL);
|
||||
bv->updateInset(this, true);
|
||||
bv->updateInset(this, false);
|
||||
} else {
|
||||
collapsed_ = true;
|
||||
bv->unlockInset(this);
|
||||
bv->updateInset(this, true);
|
||||
bv->updateInset(this, false);
|
||||
}
|
||||
} else if (!collapsed_ && (y > button_bottom_y)) {
|
||||
LyXFont font(LyXFont::ALL_SANE);
|
||||
@ -602,7 +602,7 @@ void InsetCollapsable::open(BufferView * bv)
|
||||
if (!collapsed_) return;
|
||||
|
||||
collapsed_ = false;
|
||||
bv->updateInset(this, true);
|
||||
bv->updateInset(this, false);
|
||||
}
|
||||
|
||||
|
||||
@ -612,7 +612,7 @@ void InsetCollapsable::close(BufferView * bv) const
|
||||
return;
|
||||
|
||||
collapsed_ = true;
|
||||
bv->updateInset(const_cast<InsetCollapsable *>(this), true);
|
||||
bv->updateInset(const_cast<InsetCollapsable *>(this), false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -560,7 +560,7 @@ void InsetERT::status(BufferView * bv, ERTStatus const st) const
|
||||
break;
|
||||
}
|
||||
if (bv)
|
||||
bv->updateInset(const_cast<InsetERT *>(this), true);
|
||||
bv->updateInset(const_cast<InsetERT *>(this), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user