]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / bufferview_funcs.C
index 249acf9e49e333ce08c4235a1dc2c5b77147e7d4..4ed3413732a7a4c8fb59f63780989a631949a29c 100644 (file)
@@ -11,7 +11,6 @@
 #include <config.h>
 
 #include "bufferview_funcs.h"
-#include "frontends/LyXView.h"
 #include "BufferView.h"
 #include "paragraph.h"
 #include "lyxfont.h"
 #include "author.h"
 #include "changes.h"
 
+#include "frontends/LyXView.h"
 #include "frontends/Alert.h"
 
 #include "support/lstrings.h"
 
+#include "insets/updatableinset.h"
+
 #include "BoostFormat.h"
 
 void emph(BufferView * bv)
@@ -143,11 +145,11 @@ void fontSize(BufferView * bv, string const & size)
 // Returns the current font and depth as a message.
 string const currentState(BufferView * bv)
 {
-       ostringstream state;
-
        if (!bv->available())
                return string();
 
+       ostringstream state;
+
        LyXText * text = bv->getLyXText();
        Buffer * buffer = bv->buffer();
        LyXCursor const & c(text->cursor);
@@ -167,7 +169,7 @@ string const currentState(BufferView * bv)
                        state << _(" at ") << ctime(&change.changetime);
                state << " : ";
        }
+
        // I think we should only show changes from the default
        // font. (Asger)
        LyXFont font = text->real_current_font;