On Mon, Aug 19, 2002 at 08:50:45PM +0300, Martin Vermeer wrote:
> + InsetShortTitle * it = shortTitleInset();
> switch (style->latextype) {
> case LATEX_COMMAND:
> os << '\\'
> - << style->latexname()
> - << style->latexparam();
> + << style->latexname();
> +
> + // Separate handling of shorttitle inset.
> + // This means you can put it into ANY LaTeX cmd
> + if (style->hasoption) {
> + if (it != 0)
> + it->latexOptional(buf, os, false, false);
> + }
> + else
> + os << style->latexparam();
The code should be
if (style->hasoption) {
InsetShortTitle * it = shortTitleInset();
if (it != 0)
it->latexOptional(buf, os, false, false);
}
os << style->latexparam();
Perhaps InsetOptionalArg is a better name than InsetShortTitle.