http://bugzilla.lyx.org/show_bug.cgi?id=2003

Do not indent optarg insets. The fix is trivial. For the future, we might 
consider a bool neverindent in InsetBase rather than putting each inset to 
the if-clause.

OK to apply?

Jürgen
Index: src/text.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v
retrieving revision 1.624
diff -p -u -r1.624 text.C
--- src/text.C	15 Aug 2005 08:26:53 -0000	1.624
+++ src/text.C	27 Aug 2005 12:51:24 -0000
@@ -596,10 +596,11 @@ int LyXText::leftMargin(pit_type const p
 	    && !(!par.empty()
 		    && par.isInset(pos)
 		    && par.getInset(pos)->display())
-	    // in charstyles, tabulars and ert paragraphs are never indented!
+	    // in charstyles, optargs, tabulars and ert paragraphs are never indented!
 	    && ((par.ownerCode() != InsetBase::TEXT_CODE || isMainText())
 	            && par.ownerCode() != InsetBase::ERT_CODE
-		    && par.ownerCode() != InsetBase::CHARSTYLE_CODE)
+		    && par.ownerCode() != InsetBase::CHARSTYLE_CODE
+		    && par.ownerCode() != InsetBase::OPTARG_CODE)
 	    && (par.layout() != tclass.defaultLayout()
 	        || bv()->buffer()->params().paragraph_separation ==
 	           BufferParams::PARSEP_INDENT))

Reply via email to