From 4f8690cc2189dd5e0f94f530a0274d16d03e0b3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 4 Sep 2003 13:00:12 +0000 Subject: [PATCH] output paragraph position in state text git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7661 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/POTFILES.in | 1 + src/ChangeLog | 6 +++++- src/bufferview_funcs.C | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index db0888f6ce..c877ff374b 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -185,6 +185,7 @@ src/mathed/ref_inset.C src/paragraph.C src/paragraph_funcs.C src/rowpainter.C +src/support/path_defines.C src/text.C src/text2.C src/text3.C diff --git a/src/ChangeLog b/src/ChangeLog index 61ba4a3f68..79d7f54bf7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-09-04 Lars Gullik Bjønnes + + * bufferview_funcs.C (currentState): output paragraph position + 2003-09-04 Angus Leeming * FloatList.h: move out #include "Floating.h". @@ -9,7 +13,7 @@ * lyxfunc.h: move out #include "FuncStatus.h". * lyxtext: move out #include "lyxcursor.h". * paragraph_pimpl.h: move out #include "counters.h". - + 2003-09-03 Angus Leeming * LaTeXFeatures.[Ch]: replace the externalPreambles string with a diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 1742f69441..6dc8b3fff8 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -363,7 +363,8 @@ string const currentState(BufferView * bv) } #ifdef DEVEL_VERSION state << _(", Paragraph: ") << text->cursor.par()->id(); - state << " Inset: " << + state << _(", Position: ") << text->cursor.pos(); + state << _(", Inset: ") << (text->cursor.par()->inInset() ? text->cursor.par()->inInset()->id() : -1); #endif return STRCONV(state.str()); -- 2.39.2