* src/buffer.C (readHeader): reset custom bullets initially. Fixes 
	bug 3312.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17432 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-03-13 10:40:21 +00:00
parent 1185d74bb1
commit 2aa90ddc2b
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-03-13 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* buffer.C (readHeader): make sure to reset bullets too (bug 3312)
2007-02-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyx_cb.C (InsertAsciiFile): delete selection before insertion

View File

@ -414,6 +414,10 @@ int Buffer::readHeader(LyXLex & lex)
params().headheight.erase();
params().headsep.erase();
params().footskip.erase();
for (int i = 0; i < 4; ++i) {
params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];
params().temp_bullet(i) = ITEMIZE_DEFAULTS[i];
}
while (lex.isOK()) {
lex.next();

View File

@ -560,7 +560,7 @@ void BufferParams::writeFile(ostream & os) const
// the textclass
os << "\\textclass " << textclasslist[textclass].name() << '\n';
// then the the preamble
// then the preamble
if (!preamble.empty()) {
// remove '\n' from the end of preamble
string const tmppreamble = rtrim(preamble, "\n");