From e8eb6cdb2dd9c4b44fab5939c499c46f8ff7b820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 14 Aug 2002 09:52:30 +0000 Subject: [PATCH] bug fix. reorder initialization git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4962 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/LyXView.C | 6 +++--- src/frontends/LyXView.h | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/frontends/LyXView.C b/src/frontends/LyXView.C index 1bcac4dd0f..674c3ec6c4 100644 --- a/src/frontends/LyXView.C +++ b/src/frontends/LyXView.C @@ -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; } diff --git a/src/frontends/LyXView.h b/src/frontends/LyXView.h index 5a478650a9..2e2e431a21 100644 --- a/src/frontends/LyXView.h +++ b/src/frontends/LyXView.h @@ -144,8 +144,6 @@ protected: boost::scoped_ptr menubar_; /// view's toolbar boost::scoped_ptr toolbar_; - /// view's command buffer controller - boost::scoped_ptr const controlcommand_; private: /** @@ -166,6 +164,12 @@ private: boost::scoped_ptr lyxfunc_; /// dialogs for this view boost::scoped_ptr dialogs_; + +protected: + /// view's command buffer controller + // this has to be declared _after_ lyxfunc_ as its initialization depends + // on it! + boost::scoped_ptr const controlcommand_; }; #endif // LYXVIEW_H