]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfont.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / lyxfont.h
index 65267f996996131c4ffe3e48b43a57617c11c019..62e5da13f22ad8c3c589acdfa23533cc17cd60f0 100644 (file)
@@ -325,8 +325,7 @@ public:
        ///
        friend 
        bool operator!=(LyXFont const & font1, LyXFont const & font2) {
-               return font1.bits != font2.bits ||
-                       font1.lang != font2.lang;
+               return !(font1 == font2);
        }
 
        /// compares two fonts, ignoring the setting of the Latex part.
@@ -527,14 +526,14 @@ Language const * LyXFont::language() const
 inline
 bool LyXFont::isRightToLeft() const 
 {
-       return lang->RightToLeft;
+       return lang->RightToLeft();
 }
 
 
 inline
 bool LyXFont::isVisibleRightToLeft() const 
 {
-       return (lang->RightToLeft && latex() != ON);
+       return (lang->RightToLeft() && latex() != ON);
 }