currentState() should show mathed status not lyxtext, when in

a math inset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6725 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-07 05:37:58 +00:00
parent a0f0debf63
commit 83c29bbf28
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-04-07 John Levon <levon@movementarian.org>
* bufferview_funcs.C: show math status not outside
status in the statusbar
2003-04-07 John Levon <levon@movementarian.org>
* lyxfunc.C: note status changed after a depth change

View File

@ -29,6 +29,7 @@
#include "frontends/LyXView.h"
#include "frontends/Alert.h"
#include "mathed/math_cursor.h"
#include "support/lstrings.h"
#include "Lsstream.h"
@ -288,6 +289,9 @@ string const currentState(BufferView * bv)
if (!bv->available())
return string();
if (mathcursor)
return mathcursor->info();
ostringstream state;
LyXText * text = bv->getLyXText();