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:
Jürgen Vigna 2001-10-03 14:28:02 +00:00
parent 31baf131cb
commit b64fe15c3e
5 changed files with 20 additions and 8 deletions

View File

@ -1039,7 +1039,7 @@ void BufferView::Pimpl::update(LyXText * text, BufferView::UpdateCodes f)
if (text->inset_owner) { if (text->inset_owner) {
text->inset_owner->setUpdateStatus(bv_, InsetText::NONE); text->inset_owner->setUpdateStatus(bv_, InsetText::NONE);
updateInset(text->inset_owner, true); updateInset(text->inset_owner, false);
} else { } else {
update(); update();
} }

View File

@ -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> 2001-10-03 Angus Leeming <a.leeming@ic.ac.uk>
* WorkArea.C (c-tor): re-position version string slightly. * WorkArea.C (c-tor): re-position version string slightly.

View File

@ -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> 2001-10-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* insettabular.C (deletable): make const * insettabular.C (deletable): make const

View File

@ -243,7 +243,7 @@ void InsetCollapsable::edit(BufferView * bv, int xp, int yp,
first_after_edit = true; first_after_edit = true;
if (!bv->lockInset(this)) if (!bv->lockInset(this))
return; return;
bv->updateInset(this, true); bv->updateInset(this, false);
inset.edit(bv); inset.edit(bv);
} else { } else {
if (!bv->lockInset(this)) if (!bv->lockInset(this))
@ -271,7 +271,7 @@ void InsetCollapsable::edit(BufferView * bv, bool front)
if (!bv->lockInset(this)) if (!bv->lockInset(this))
return; return;
inset.setUpdateStatus(bv, InsetText::FULL); inset.setUpdateStatus(bv, InsetText::FULL);
bv->updateInset(this, true); bv->updateInset(this, false);
inset.edit(bv, front); inset.edit(bv, front);
} else { } else {
if (!bv->lockInset(this)) if (!bv->lockInset(this))
@ -334,11 +334,11 @@ void InsetCollapsable::insetButtonRelease(BufferView * bv,
// should not be called on inset open! // should not be called on inset open!
// inset.insetButtonRelease(bv, 0, 0, button); // inset.insetButtonRelease(bv, 0, 0, button);
inset.setUpdateStatus(bv, InsetText::FULL); inset.setUpdateStatus(bv, InsetText::FULL);
bv->updateInset(this, true); bv->updateInset(this, false);
} else { } else {
collapsed_ = true; collapsed_ = true;
bv->unlockInset(this); bv->unlockInset(this);
bv->updateInset(this, true); bv->updateInset(this, false);
} }
} else if (!collapsed_ && (y > button_bottom_y)) { } else if (!collapsed_ && (y > button_bottom_y)) {
LyXFont font(LyXFont::ALL_SANE); LyXFont font(LyXFont::ALL_SANE);
@ -602,7 +602,7 @@ void InsetCollapsable::open(BufferView * bv)
if (!collapsed_) return; if (!collapsed_) return;
collapsed_ = false; collapsed_ = false;
bv->updateInset(this, true); bv->updateInset(this, false);
} }
@ -612,7 +612,7 @@ void InsetCollapsable::close(BufferView * bv) const
return; return;
collapsed_ = true; collapsed_ = true;
bv->updateInset(const_cast<InsetCollapsable *>(this), true); bv->updateInset(const_cast<InsetCollapsable *>(this), false);
} }

View File

@ -560,7 +560,7 @@ void InsetERT::status(BufferView * bv, ERTStatus const st) const
break; break;
} }
if (bv) if (bv)
bv->updateInset(const_cast<InsetERT *>(this), true); bv->updateInset(const_cast<InsetERT *>(this), false);
} }
} }