From a7721a236ef0a47fcfc0d3d88ca6dcf156f9dc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 18 Jul 2009 07:19:38 +0000 Subject: [PATCH] * Paragraph.cpp: prevent null pointer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30658 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 3332c4615d..b7f7d49c3a 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -558,7 +558,8 @@ int Paragraph::Private::latexSurrogatePair(odocstream & os, char_type c, // the encoding supports the combination os << latex2 << latex1; return latex1.length() + latex2.length(); - } else if (runparams.local_font->language()->lang() == "polutonikogreek") { + } else if (runparams.local_font && + runparams.local_font->language()->lang() == "polutonikogreek") { // polutonikogreek only works without the brackets os << latex1 << latex2; return latex1.length() + latex2.length();