]> git.lyx.org Git - features.git/commitdiff
Phantom is fragile (#9456)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 16 Mar 2015 13:11:45 +0000 (14:11 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 16 Mar 2015 13:11:45 +0000 (14:11 +0100)
src/insets/InsetPhantom.cpp

index 429fe331e42a9f94804253a1ff73a23ef9718075..f8d99d8bfca5db919e5af03ea0bbf614f52585e4 100644 (file)
@@ -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)