output paragraph position in state text

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7661 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-09-04 13:00:12 +00:00
parent f2d97f93b4
commit 4f8690cc21
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -1,3 +1,7 @@
2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
* bufferview_funcs.C (currentState): output paragraph position
2003-09-04 Angus Leeming <leeming@lyx.org>
* FloatList.h: move out #include "Floating.h".

View File

@ -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());