]> git.lyx.org Git - lyx.git/commitdiff
add some assertions.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 14 Oct 2006 13:15:46 +0000 (13:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 14 Oct 2006 13:15:46 +0000 (13:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15330 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Application.C

index ded18b8d6fcfd4141c5ca8823b42ccbf62f9037d..852dcdb5b1d29ec97ec09a9e41a63eb54e8586d8 100644 (file)
@@ -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();
 }