let this code work with lyxstring also

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2002-04-02 02:45:23 +00:00
parent b60497a814
commit 1bcc13c757
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2002-04-02 Allan Rae <rae@lyx.org>
* math_cursor.C (info): make it work with lyxstring and std::string
2002-03-12 André Pönitz <poenitz@gmx.net>

View File

@ -1598,5 +1598,5 @@ string MathCursor::info() const
ostringstream os;
if (pos() > 0)
prevAtom()->infoize(os);
return os.str();
return os.str().c_str(); // .c_str() needed for lyxstring
}