From 03270dd2a652bef468266d98f6b27996150cf9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 18 Jul 2009 12:19:31 +0000 Subject: [PATCH] * InsetSpace.cpp: prevent another (potential) null pointer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30666 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetSpace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp index bfdd68a39a..680a449c43 100644 --- a/src/insets/InsetSpace.cpp +++ b/src/insets/InsetSpace.cpp @@ -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