]> git.lyx.org Git - features.git/commitdiff
Make sure we write a valid file even if InsetFlex is undefined.
authorRichard Heck <rgheck@comcast.net>
Thu, 14 Feb 2008 03:42:54 +0000 (03:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 14 Feb 2008 03:42:54 +0000 (03:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22989 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetFlex.cpp

index 9555cb2461a1bc69bdd18430af5741152095cd01..8fec65bca9360748899d717c5812342defe3a62a 100644 (file)
@@ -78,7 +78,8 @@ docstring const InsetFlex::editMessage() 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);
 }