Don't collapse InsetERT on close() if inlined (fix #293).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3830 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-03-26 09:51:12 +00:00
parent d246375c2c
commit 0b5694eeb0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-03-26 Juergen Vigna <jug@sad.it>
* insetert.C (close): don't collapse if inlined.
2002-03-25 Herbert Voss <voss@lyx.org>
* insetgraphicsParams.C (Read): prevent LyX from hanging if the

View File

@ -668,8 +668,9 @@ void InsetERT::open(BufferView * bv)
void InsetERT::close(BufferView * bv) const
{
if (collapsed_)
if (status_ == Collapsed || status_ == Inlined)
return;
status(bv, Collapsed);
}