mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
DocBook, InsetFloat: avoid a potential nullptr dereference when detecting the type of table for filler content.
This commit is contained in:
parent
bfe9818116
commit
cfb6f205fa
@ -819,12 +819,15 @@ void docbookNoSubfigures(XMLStream & xs, OutputParams const & runparams, const I
|
||||
}
|
||||
|
||||
// - Output the actual content of the float or some dummy content (to ensure that the output
|
||||
// document is valid).
|
||||
// document is valid). Use HTML tables by default, unless an InsetFloat is given.
|
||||
if (hasFloat)
|
||||
xs << XMLStream::ESCAPE_NONE << osFloatContent.str();
|
||||
else if (ftype.docbookFloatType() == "table")
|
||||
docbookGenerateFillerTable(xs, thisFloat->buffer().params().docbook_table_output);
|
||||
else
|
||||
else if (ftype.docbookFloatType() == "table") {
|
||||
BufferParams::TableOutput tableFormat = BufferParams::HTMLTable;
|
||||
if (thisFloat)
|
||||
tableFormat = thisFloat->buffer().params().docbook_table_output;
|
||||
docbookGenerateFillerTable(xs, tableFormat);
|
||||
} else
|
||||
docbookGenerateFillerMedia(xs);
|
||||
|
||||
// - Close the float.
|
||||
|
Loading…
Reference in New Issue
Block a user