From 3ed8009bcc72318614444648e4bb39b72f3eda8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 16 Feb 2004 12:09:31 +0000 Subject: [PATCH] fix crash on 'do nothing' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8436 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/cursor.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cursor.C b/src/cursor.C index 1679c27d5e..5cf84efe88 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -1912,7 +1912,7 @@ string LCursor::currentState() info(os); return os.str(); } - return text()->currentState(*this); + return text() ? text()->currentState(*this) : string(); } -- 2.39.2