]> git.lyx.org Git - lyx.git/commit
Fix crash when the Outline dialog is opened on an empty document. This was caused...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 14 Aug 2007 16:59:59 +0000 (16:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 14 Aug 2007 16:59:59 +0000 (16:59 +0000)
commit8f83eab31f18602108b740c3d2a1ef32b95eb19d
tree75de28255659b617f17b7fe25f36de482a471a8d
parent8a221dc70c53b950697f8440ec4894f2cede7cfa
Fix crash when the Outline dialog is opened on an empty document. This was caused by the commented out updateLabels() in LyXFunc::menuNew().

* Text: new empty() method.

* buffer_funcs.cpp:updateLabels(): return early in case of empty document.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19566 a592a061-630c-0410-9148-cb99ea01b6c8
src/LyXFunc.cpp
src/Text.cpp
src/Text.h
src/buffer_funcs.cpp