]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
namespace grfx -> lyx::graphics
[lyx.git] / src / bufferview_funcs.C
index 0ef62d3b4850e49628b2d4d5c4266a5cc4e72e65..a58c0c9e9c0ae1ade6684220676d0a50811c3444 100644 (file)
@@ -36,6 +36,8 @@
 
 #include "insets/updatableinset.h"
 
+using namespace lyx::support;
+
 
 namespace {
 
@@ -359,6 +361,8 @@ string const currentState(BufferView * bv)
        }
 #ifdef DEVEL_VERSION
        state << _(", Paragraph: ") << text->cursor.par()->id();
+       state << "  Inset: " <<
+               (text->cursor.par()->inInset() ? text->cursor.par()->inInset()->id() : -1);
 #endif
        return STRCONV(state.str());
 }
@@ -389,7 +393,7 @@ void toggleAndShow(BufferView * bv, LyXFont const & font, bool toggleall)
        if (font.language() != ignore_language ||
            font.number() != LyXFont::IGNORE) {
                LyXCursor & cursor = text->cursor;
-               text->computeBidiTables(bv->buffer(), cursor.row());
+               text->computeBidiTables(bv->buffer(), text->cursorRow());
                if (cursor.boundary() !=
                    text->isBoundary(bv->buffer(), *cursor.par(), cursor.pos(),
                                     text->real_current_font))