]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
Rob's latest and greatest dialog tweaking.
[lyx.git] / src / bufferview_funcs.C
index 7a9ebed408843a1319cfb44510f7aacb0bbd40aa..448f17788487fadfa6776aac73556d73592a5e9d 100644 (file)
@@ -119,11 +119,7 @@ void roman(BufferView * bv)
 
 void styleReset(BufferView * bv)
 {
-#ifndef INHERIT_LANG
        LyXFont font(LyXFont::ALL_INHERIT, ignore_language);
-#else
-       LyXFont font(LyXFont::ALL_INHERIT);
-#endif
        toggleAndShow(bv, font);
 }
 
@@ -151,7 +147,7 @@ string const currentState(BufferView * bv)
 
        if (!bv->available())
                return "";
+
        // I think we should only show changes from the default
        // font. (Asger)
        LyXText * text = bv->getLyXText();
@@ -209,14 +205,14 @@ void toggleAndShow(BufferView * bv, LyXFont const & font, bool toggleall)
 {
        if (!bv->available())
                return;
+
        if (bv->theLockingInset()) {
                bv->theLockingInset()->setFont(bv, font, toggleall);
                return;
        }
+
        LyXText * text = bv->getLyXText();
-       // FIXME: can this happen ?? 
+       // FIXME: can this happen ??
        if (!text)
                return;