mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix bug 3723:
* src/Buffer.cpp (read): clear listings params. * src/frontends/qt4/QDocument.cpp: whitespace git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18507 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
93f7bc7eb0
commit
5e6391a04a
@ -427,6 +427,7 @@ int Buffer::readHeader(Lexer & lex)
|
||||
params().headheight.erase();
|
||||
params().headsep.erase();
|
||||
params().footskip.erase();
|
||||
params().listings_params.clear();
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];
|
||||
params().temp_bullet(i) = ITEMIZE_DEFAULTS[i];
|
||||
|
@ -956,7 +956,8 @@ void QDocumentDialog::apply(BufferParams & params)
|
||||
params.columns = 1;
|
||||
|
||||
// text should have passed validation
|
||||
params.listings_params = InsetListingsParams(fromqstr(textLayoutModule->listingsED->toPlainText())).params();
|
||||
params.listings_params =
|
||||
InsetListingsParams(fromqstr(textLayoutModule->listingsED->toPlainText())).params();
|
||||
|
||||
if (textLayoutModule->indentRB->isChecked())
|
||||
params.paragraph_separation = BufferParams::PARSEP_INDENT;
|
||||
@ -1262,7 +1263,8 @@ void QDocumentDialog::updateParams(BufferParams const & params)
|
||||
params.columns == 2);
|
||||
|
||||
// break listings_params to multiple lines
|
||||
string lstparams = InsetListingsParams(params.listings_params).separatedParams();
|
||||
string lstparams =
|
||||
InsetListingsParams(params.listings_params).separatedParams();
|
||||
textLayoutModule->listingsED->setPlainText(toqstr(lstparams));
|
||||
|
||||
if (!params.options.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user