]> git.lyx.org Git - features.git/commitdiff
* Paragraph.cpp: prevent null pointer.
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 18 Jul 2009 07:19:38 +0000 (07:19 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 18 Jul 2009 07:19:38 +0000 (07:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30658 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 3332c4615d68a144c01aac79cb2b0b4a1edcc1ae..b7f7d49c3ab826f2a9ccbe7a2b14d3cd14de0bd6 100644 (file)
@@ -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();