From: André Pönitz Date: Mon, 16 Feb 2004 12:09:31 +0000 (+0000) Subject: fix crash on 'do nothing' X-Git-Tag: 1.6.10~15504 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3ed8009bcc72318614444648e4bb39b72f3eda8c;p=lyx.git fix crash on 'do nothing' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8436 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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(); }