fix segmentation fault

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10437 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-09-10 13:29:44 +00:00
parent 3382c78af9
commit 58934cde15
2 changed files with 5 additions and 1 deletions

View 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()

View 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)