]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.h
es.po: fix a typo introduced by last commit
[lyx.git] / src / FontInfo.h
index a083eae2aa85c0834465f3c0888c645180e0a6f4..c31c7fac779f7173b512d7672d23924277332fee 100644 (file)
@@ -114,7 +114,7 @@ public:
                if (noun_ == FONT_ON)
                        return SMALLCAPS_SHAPE;
                if (emph_ == FONT_ON)
-                       return (shape_ == UP_SHAPE) ? ITALIC_SHAPE : UP_SHAPE;
+                       return (shape_ == ITALIC_SHAPE) ? UP_SHAPE : ITALIC_SHAPE;
                return shape_;
        }
 
@@ -221,6 +221,9 @@ FontState setLyXMisc(std::string const &);
 /// Read a font specification from Lexer. Used for layout files.
 FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
 
+/// Write a font specification. Used for layout files.
+void lyxWrite(std::ostream &, FontInfo const &, std::string const &, int);
+
 } // namespace lyx
 
 #endif