]> git.lyx.org Git - features.git/commitdiff
let this code work with lyxstring also
authorAllan Rae <rae@lyx.org>
Tue, 2 Apr 2002 02:45:23 +0000 (02:45 +0000)
committerAllan Rae <rae@lyx.org>
Tue, 2 Apr 2002 02:45:23 +0000 (02:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3876 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_cursor.C

index f3ab830a4c09a5fd4abf6fd1c688e7cc04b88964..5ec79f8e320a17ab57942c9807a41d9d08ffbc52 100644 (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>
 
index 57b58e7dd109a2582b4beab70241f6e837ca829d..3a17efa565f25bcbbc51d12296c72cd0ad73e82f 100644 (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
 }