Hi, the file_format is not a buffer property, we removed it from buffer.h as it only used when reading the lyx file.
Ok to apply it? -- José Abílio LyX and docbook, a perfect match. :-)
? src/frontends/xforms/lyx_forms.h ? src/frontends/xforms/lyx_xpm.h Index: src//buffer.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/buffer.C,v retrieving revision 1.506 diff -u -p -r1.506 buffer.C --- src//buffer.C 28 Jul 2003 23:05:57 -0000 1.506 +++ src//buffer.C 31 Jul 2003 18:15:31 -0000 @@ -498,7 +498,7 @@ bool Buffer::readFile(LyXLex & lex, stri //lyxerr << " dot found at " << dot << endl; if (dot != string::npos) tmp_format.erase(dot, 1); - file_format = strToInt(tmp_format); + int file_format = strToInt(tmp_format); //lyxerr << "format: " << file_format << endl; if (file_format == LYX_FORMAT) { // current format Index: src//buffer.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/buffer.h,v retrieving revision 1.153 diff -u -p -r1.153 buffer.h --- src//buffer.h 28 Jul 2003 14:40:26 -0000 1.153 +++ src//buffer.h 31 Jul 2003 18:15:31 -0000 @@ -317,8 +317,6 @@ private: /// The path to the document file. string filepath_; - /// Format number of buffer - int file_format; /// boost::scoped_ptr<Messages> messages_; public: