]> git.lyx.org Git - features.git/commitdiff
Let's add one step of security more here.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Oct 2010 17:00:43 +0000 (17:00 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Oct 2010 17:00:43 +0000 (17:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35858 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 6115a4076285c1410473ec748bc6ba3bff69935b..db5698129c2d293d0472c95f0cc546e47ae0e8c6 100644 (file)
@@ -2761,8 +2761,10 @@ void Buffer::Impl::updateMacros(DocIterator & it, DocIterator & scope)
                        }
 
                        InsetMath * im = iit->inset->asInsetMath();
-                       if (doing_export && im)
-                               im->asHullInset()->recordLocation(it);
+                       if (doing_export && im) 
+                               InsetMathHull * hull = im->asHullInset();
+                               if (hull)
+                                       hull->recordLocation(it);
 
                        if (iit->inset->lyxCode() != MATHMACRO_CODE)
                                continue;