Make sure we write a valid file even if InsetFlex is undefined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22989 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-02-14 03:42:54 +00:00
parent b76e95b942
commit 3dc5bc09dd

View File

@ -78,7 +78,8 @@ docstring const InsetFlex::editMessage() const
void InsetFlex::write(Buffer const & buf, ostream & os) const void InsetFlex::write(Buffer const & buf, ostream & os) const
{ {
os << "Flex " << name_ << "\n"; os << "Flex " <<
name_.empty() ? "undefined" : name_ << "\n";
InsetCollapsable::write(buf, os); InsetCollapsable::write(buf, os);
} }