Fix crash when running lyx -dbg insets -e

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@2282 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-07-19 10:02:47 +00:00
parent 8127585050
commit 8ba16dcda3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-07-19 Dekel Tsur <dekelts@tau.ac.il>
* src/insets/figinset.C (RegisterFigure): Print debug message only when
current_view is available.
2001-07-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* config/lyxinclude.m4 (LYX_PATH_XFORMS): do not warn against

View File

@ -911,7 +911,7 @@ void RegisterFigure(InsetFig * fi)
figures.push_back(tmpfig);
fi->figure = tmpfig;
if (lyxerr.debugging()) {
if (lyxerr.debugging() && current_view) {
lyxerr << "Register Figure: buffer:["
<< current_view->buffer() << "]" << endl;
}