From: Dekel Tsur Date: Sat, 13 Jan 2001 20:32:10 +0000 (+0000) Subject: Put \protect before paragraph alignment commands X-Git-Tag: 1.6.10~21728 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a00c4b07a3d7be04e90c628e62e8f232a5df31de;p=lyx.git Put \protect before paragraph alignment commands git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1330 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 664f582ff5..a886f7da67 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,4 +1,7 @@ 2001-01-13 Dekel Tsur + * paragraph.C (SimpleTeXOnePar) Put \protect before paragraph + alignment commands (when needed). + * text.C (InsertChar): Add ':' to number separator chars. diff --git a/src/paragraph.C b/src/paragraph.C index 68c85766bc..4178582b70 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -2563,6 +2563,8 @@ bool LyXParagraph::SimpleTeXOnePar(Buffer const * buf, case LYX_ALIGN_SPECIAL: break; case LYX_ALIGN_LEFT: + if (moving_arg) + os << "\\protect"; if (getParLanguage(bparams)->babel() != "hebrew") { os << "\\raggedright "; column+= 13; @@ -2572,6 +2574,8 @@ bool LyXParagraph::SimpleTeXOnePar(Buffer const * buf, } break; case LYX_ALIGN_RIGHT: + if (moving_arg) + os << "\\protect"; if (getParLanguage(bparams)->babel() != "hebrew") { os << "\\raggedleft "; column+= 12; @@ -2581,6 +2585,8 @@ bool LyXParagraph::SimpleTeXOnePar(Buffer const * buf, } break; case LYX_ALIGN_CENTER: + if (moving_arg) + os << "\\protect"; os << "\\centering "; column+= 11; break;