mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
a0f0debf63
commit
83c29bbf28
@ -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>
|
2003-04-07 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* lyxfunc.C: note status changed after a depth change
|
* lyxfunc.C: note status changed after a depth change
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "frontends/LyXView.h"
|
#include "frontends/LyXView.h"
|
||||||
#include "frontends/Alert.h"
|
#include "frontends/Alert.h"
|
||||||
|
#include "mathed/math_cursor.h"
|
||||||
|
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
#include "Lsstream.h"
|
#include "Lsstream.h"
|
||||||
@ -288,6 +289,9 @@ string const currentState(BufferView * bv)
|
|||||||
if (!bv->available())
|
if (!bv->available())
|
||||||
return string();
|
return string();
|
||||||
|
|
||||||
|
if (mathcursor)
|
||||||
|
return mathcursor->info();
|
||||||
|
|
||||||
ostringstream state;
|
ostringstream state;
|
||||||
|
|
||||||
LyXText * text = bv->getLyXText();
|
LyXText * text = bv->getLyXText();
|
||||||
|
Loading…
Reference in New Issue
Block a user