fix crash on 'do nothing'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8436 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-02-16 12:09:31 +00:00
parent 357a3741c0
commit 3ed8009bcc

View File

@ -1912,7 +1912,7 @@ string LCursor::currentState()
info(os);
return os.str();
}
return text()->currentState(*this);
return text() ? text()->currentState(*this) : string();
}