Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2cf9a63095fc36c222212e4c29e60bf8 > files > 30

seamonkey-1.1.18-1mdv2009.0.src.rpm

--- mozilla/gfx/src/gtk/nsFontMetricsPango.cpp.pango-direction	2006-04-02 19:03:56.000000000 +0200
+++ mozilla/gfx/src/gtk/nsFontMetricsPango.cpp	2006-04-02 19:05:56.000000000 +0200
@@ -1254,6 +1254,10 @@
     mLTRPangoContext = pango_xft_get_context(GDK_DISPLAY(), 0);
     mPangoContext = mLTRPangoContext;
 
+    // Make sure that this is set LTR - RTL text will be set using the
+    // RTL context.
+    pango_context_set_base_dir(mPangoContext, PANGO_DIRECTION_LTR);
+
     // Set the color map so we can draw later.
     gdk_pango_context_set_colormap(mPangoContext, gdk_rgb_get_cmap());