bug fix. reorder initialization

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-14 09:52:30 +00:00
parent 6cd49089c4
commit e8eb6cdb2d
2 changed files with 9 additions and 5 deletions

View File

@ -46,11 +46,11 @@ string current_layout;
LyXView::LyXView()
: controlcommand_(new ControlCommandBuffer(getLyXFunc())),
intl_(new Intl),
: intl_(new Intl),
autosave_timeout_(new Timeout(5000)),
lyxfunc_(new LyXFunc(this)),
dialogs_(new Dialogs(this))
dialogs_(new Dialogs(this)),
controlcommand_(new ControlCommandBuffer(getLyXFunc()))
{
lyxerr[Debug::INIT] << "Initializing LyXFunc" << endl;
}

View File

@ -144,8 +144,6 @@ protected:
boost::scoped_ptr<Menubar> menubar_;
/// view's toolbar
boost::scoped_ptr<Toolbar> toolbar_;
/// view's command buffer controller
boost::scoped_ptr<ControlCommandBuffer> const controlcommand_;
private:
/**
@ -166,6 +164,12 @@ private:
boost::scoped_ptr<LyXFunc> lyxfunc_;
/// dialogs for this view
boost::scoped_ptr<Dialogs> dialogs_;
protected:
/// view's command buffer controller
// this has to be declared _after_ lyxfunc_ as its initialization depends
// on it!
boost::scoped_ptr<ControlCommandBuffer> const controlcommand_;
};
#endif // LYXVIEW_H