]> git.lyx.org Git - lyx.git/commitdiff
fix crash on 'do nothing'
authorAndré Pönitz <poenitz@gmx.net>
Mon, 16 Feb 2004 12:09:31 +0000 (12:09 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 16 Feb 2004 12:09:31 +0000 (12:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8436 a592a061-630c-0410-9148-cb99ea01b6c8

src/cursor.C

index 1679c27d5e2e8fc53538a16280cf221db088d77b..5cf84efe88dbdff45edae32ae7c938be32b5c5fe 100644 (file)
@@ -1912,7 +1912,7 @@ string LCursor::currentState()
                info(os);
                return os.str();
        }
-       return text()->currentState(*this);
+       return text() ? text()->currentState(*this) : string();
 }