* InsetSpace.cpp: prevent another (potential) null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30666 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-07-18 12:19:31 +00:00
parent a7721a236e
commit 03270dd2a6

View File

@ -535,7 +535,8 @@ int InsetSpace::latex(odocstream & os, OutputParams const & runparams) const
os << (runparams.free_spacing ? " " : "\\ ");
break;
case InsetSpaceParams::PROTECTED:
if (runparams.local_font->language()->lang() == "polutonikogreek")
if (runparams.local_font &&
runparams.local_font->language()->lang() == "polutonikogreek")
// in babel's polutonikogreek, ~ is active
os << (runparams.free_spacing ? " " : "\\nobreakspace{}");
else