]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
compil fix.
[lyx.git] / src / Text2.cpp
index 15a64b0b5ce03b08d8985495e24b5738bc1bac9a..bd7effb23f36ced85b42935a167e2c8170271782 100644 (file)
@@ -47,6 +47,7 @@
 #include "ParIterator.h"
 #include "Server.h"
 #include "ServerSocket.h"
+#include "TextMetrics.h"
 #include "Undo.h"
 #include "VSpace.h"
 
@@ -585,7 +586,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front)
        if (!front && cur.pos() == 0)
                return false;
        Inset * inset = front ? cur.nextInset() : cur.prevInset();
-       if (!isHighlyEditableInset(inset))
+       if (!inset || inset->editable() != Inset::HIGHLY_EDITABLE)
                return false;
        /*
         * Apparently, when entering an inset we are expected to be positioned