]> git.lyx.org Git - features.git/commitdiff
fix segmentation fault
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 10 Sep 2005 13:29:44 +0000 (13:29 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 10 Sep 2005 13:29:44 +0000 (13:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10437 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text.C

index a6dc33087e9aa07e3467cb677c3ff7be63ec8b6f..e90f83495dcdfadbf7035a209a029e74a6a093f7 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-10  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (leftMargin): check for inInset == 0
+
 2005-08-10  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
 
        * text.C (leftMargin): test for insetbase's new neverIndent()
index 887bc58e3accbf7e12ad525138355e508572bd5a..ddd41bbe46c1fc24c78dca944228eb34393d63fc 100644 (file)
@@ -592,7 +592,7 @@ int LyXText::leftMargin(pit_type const pit, pos_type const pos) const
            && align == LYX_ALIGN_BLOCK
            && !par.params().noindent()
            // in some insets, paragraphs are never indented
-           && !par.inInset()->neverIndent()
+           && !(par.inInset() && par.inInset()->neverIndent())
            // display style insets are always centered, omit indentation
            && !(!par.empty()
                    && par.isInset(pos)