On Fri, Apr 29, 2005 at 10:46:18AM +0200, Juergen Spitzmueller wrote:
> Martin Vermeer wrote:
> > > There's still some fun available on bugzilla.
> > Gimme a number, any number...
> 
> OK, if you ask ;-)

...
 
> 1764 could also be up your alley.

Yes it is... quick & dirty fixes :-) I believe this will do for 1.4, a
proper fix would probably make the parindent status a lyxtext rather than a 
buffer property.

Please test. In this spaghetti, I wouldn't be surprised by side effects.

- Martin

Index: text.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v
retrieving revision 1.599
diff -u -p -r1.599 text.C
--- text.C      26 Apr 2005 11:12:10 -0000      1.599
+++ text.C      29 Apr 2005 19:31:12 -0000
@@ -591,7 +591,7 @@ int LyXText::leftMargin(pit_type const p
            && align == LYX_ALIGN_BLOCK
            && !par.params().noindent()
            // in charstyles, tabulars and ert paragraphs are never indented!
-           && (par.ownerCode() != InsetBase::TEXT_CODE
+           && ((par.ownerCode() != InsetBase::TEXT_CODE || isMainText())
                    && par.ownerCode() != InsetBase::ERT_CODE
                    && par.ownerCode() != InsetBase::CHARSTYLE_CODE)
            && (par.layout() != tclass.defaultLayout()

Attachment: pgphOvl2iH180.pgp
Description: PGP signature

Reply via email to