From: Abdelrazak Younes Date: Sat, 14 Oct 2006 13:15:46 +0000 (+0000) Subject: add some assertions. X-Git-Tag: 1.6.10~12386 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3cb466603c796fa1d69b268b1bc42fa653a13b7e;p=lyx.git add some assertions. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15330 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/Application.C b/src/frontends/Application.C index ded18b8d6f..852dcdb5b1 100644 --- a/src/frontends/Application.C +++ b/src/frontends/Application.C @@ -160,30 +160,35 @@ void dispatch(FuncRequest const & action) LyXFunc & theLyXFunc() { + BOOST_ASSERT(theApp); return theApp->lyxFunc(); } lyx::frontend::FontLoader & theFontLoader() { + BOOST_ASSERT(theApp); return theApp->fontLoader(); } lyx::frontend::FontMetrics const & theFontMetrics(LyXFont const & f) { + BOOST_ASSERT(theApp); return theApp->fontLoader().metrics(f); } lyx::frontend::Clipboard & theClipboard() { + BOOST_ASSERT(theApp); return theApp->clipboard(); } lyx::frontend::Selection & theSelection() { + BOOST_ASSERT(theApp); return theApp->selection(); }