X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetIndexMacro.cpp;h=80ba766b538afdb6438b69521a7b03ffe6973aa4;hb=26ba2a65838731ce639a09539f617cb0f0be3b22;hp=31754308f8565a20046edc1d3c84976030c489e9;hpb=077ccf905dfaa5dac0c5e77a54b15c6980d45b09;p=lyx.git diff --git a/src/insets/InsetIndexMacro.cpp b/src/insets/InsetIndexMacro.cpp index 31754308f8..80ba766b53 100644 --- a/src/insets/InsetIndexMacro.cpp +++ b/src/insets/InsetIndexMacro.cpp @@ -159,6 +159,7 @@ void InsetIndexMacro::getLatex(otexstream & os, OutputParams const & runparams) if (hasSortKey()) { getSortkey(os, runparams); os << "@"; + InsetText::latex(os, runparams); } else { odocstringstream ourlatex; otexstream ots(ourlatex); @@ -205,6 +206,12 @@ docstring InsetIndexMacro::getXhtml(XMLStream & xs, OutputParams const & runpara } +bool InsetIndexMacro::hasNoContent() const +{ + return paragraphs().front().empty(); +} + + void InsetIndexMacro::doDispatch(Cursor & cur, FuncRequest & cmd) { switch (cmd.action()) {