* 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
This commit is contained in:
Jürgen Spitzmüller 2007-03-12 15:15:21 +00:00
parent d588c13f3f
commit c808fc0445
2 changed files with 5 additions and 1 deletions

View File

@ -428,6 +428,10 @@ int Buffer::readHeader(LyXLex & lex)
params().headheight.erase(); params().headheight.erase();
params().headsep.erase(); params().headsep.erase();
params().footskip.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"]; ErrorList & errorList = errorLists_["Parse"];

View File

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