X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.cpp;h=9e3808f0e7ca38d1d9bc4f333fc5411ac3360145;hb=bfddee97e191a853f0576f4fab3f095c4e9ce0de;hp=27a68c0ba9e0c32ff48d45120e6a45021f67f8d5;hpb=1ef605f6254ef3f3b8cec5440a2e67e6f23a707b;p=lyx.git diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index 27a68c0ba9..9e3808f0e7 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -126,7 +126,7 @@ InsetPhantom::~InsetPhantom() } -docstring InsetPhantom::name() const +docstring InsetPhantom::layoutName() const { return from_ascii("Phantom:" + phantomtranslator().find(params_.type)); } @@ -307,7 +307,7 @@ docstring InsetPhantom::toolTip(BufferView const &, int, int) const } -int InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const +void InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const { if (params_.type == InsetPhantomParams::Phantom) os << "\\phantom{"; @@ -315,10 +315,8 @@ int InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const os << "\\hphantom{"; else if (params_.type == InsetPhantomParams::VPhantom) os << "\\vphantom{"; - int const i = InsetCollapsable::latex(os, runparams); + InsetCollapsable::latex(os, runparams); os << "}"; - - return i; }