]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
more cursor dispatch
[lyx.git] / src / bufferview_funcs.C
index 2523b065c4458d7181d04026a51510b136b3bd71..634ed5f9c4342190530f8823a651a36c1778f67d 100644 (file)
 
 #include "insets/insettext.h"
 
-#include "mathed/math_cursor.h"
-
 #include "support/tostr.h"
-
 #include "support/std_sstream.h"
 
 using lyx::support::bformat;
@@ -169,7 +166,7 @@ string const currentState(BufferView * bv)
        if (!bv->available())
                return string();
 
-       if (inMathed()) {
+       if (bv->cursor().inMathed()) {
                bv->cursor().info(state);
                return state.str();
        }