From: Juergen Spitzmueller Date: Mon, 16 Mar 2015 13:11:45 +0000 (+0100) Subject: Phantom is fragile (#9456) X-Git-Tag: 2.2.0alpha1~1161 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d044d6afa7192b2119784e1415e71dad644bc335;p=features.git Phantom is fragile (#9456) --- diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index 429fe331e4..f8d99d8bfc 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -311,6 +311,8 @@ docstring InsetPhantom::toolTip(BufferView const &, int, int) const void InsetPhantom::latex(otexstream & os, OutputParams const & runparams) const { + if (runparams.moving_arg) + os << "\\protect"; if (params_.type == InsetPhantomParams::Phantom) os << "\\phantom{"; else if (params_.type == InsetPhantomParams::HPhantom)