The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 63295f9dc54267dcfe4f55b33303f366ec7a84e2
Author: Uwe Stöhr <uwesto...@lyx.org>
Date:   Mon Nov 19 01:13:37 2012 +0100

    Font.cpp: fix bug #8424
    
    We must group the content which should be changed in size wit a pair of 
braces because the LaTeX size commands are otherwise switches. We already do so 
for many case, but not for the case that a size command is inside another 
command. This patch adds now always a brace pair around the selected text which 
is the safest method.

diff --git a/src/Font.cpp b/src/Font.cpp
index 0850175..6e7ab34 100644
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -332,7 +332,7 @@ int Font::latexWriteStartChanges(odocstream & os, 
BufferParams const & bparams,
                }
        }
 
-       // When the current language is Hebrew, Arabic, or Farsi
+       // If the current language is Hebrew, Arabic, or Farsi
        // the numbers are written Left-to-Right. ArabTeX package
        // reorders the number automatically but the packages used
        // for Hebrew and Farsi (Arabi) do not.
@@ -428,7 +428,7 @@ int Font::latexWriteStartChanges(odocstream & os, 
BufferParams const & bparams,
                }
                os << '\\'
                   << LaTeXSizeNames[f.size()]
-                  << ' ';
+                  << '{';
                count += strlen(LaTeXSizeNames[f.size()]) + 2;
        }
        return count;
@@ -513,6 +513,8 @@ int Font::latexWriteEndChanges(otexstream & os, 
BufferParams const & bparams,
                        os << '}';
                        ++count;
                }
+               os << '}';
+               ++count;
        }
 
        // When the current language is Hebrew, Arabic, or Farsi

-----------------------------------------------------------------------

Summary of changes:
 src/Font.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to