X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.C;h=a58c0c9e9c0ae1ade6684220676d0a50811c3444;hb=fe390e9da1538e20eabbc98977d845295f8e563d;hp=0ef62d3b4850e49628b2d4d5c4266a5cc4e72e65;hpb=df05987d840b24f9e0a9ed5bb4e3deb3f79c1770;p=lyx.git diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 0ef62d3b48..a58c0c9e9c 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -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))