From c808fc0445d26e7adbd82f2241c2d933b5809ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 12 Mar 2007 15:15:21 +0000 Subject: [PATCH] * src/buffer.C (readHeader): - reset custom bullets initially. Fixes bug 3312. * src/bufferparams.C: fix typo in comment git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17419 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/buffer.C | 4 ++++ src/bufferparams.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/buffer.C b/src/buffer.C index e8baf96ec8..365408aa5e 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -428,6 +428,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]; + } ErrorList & errorList = errorLists_["Parse"]; diff --git a/src/bufferparams.C b/src/bufferparams.C index d7e58ef4d7..28d56613bc 100644 --- a/src/bufferparams.C +++ b/src/bufferparams.C @@ -603,7 +603,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");