On Thu, Dec 20, 2007 at 10:04:21PM -0500, rgheck wrote: > Enrico Forestieri wrote: > > On Fri, Dec 21, 2007 at 12:08:18AM +0100, Jean-Marc Lasgouttes wrote: > > > > > >> rgheck <[EMAIL PROTECTED]> writes: > >> > >> > >>> In the gather environment in LyX 1.5.x, as well as in earlier > >>> versions, everything is right-aligned, which both looks weird and is > >>> wrong as far as on-screen display is concerned. I had a quick look at > >>> the code > >>> > >> Isn't there a difference between "gather" and "gathered"? > >> > > > > Yes. The gather environment has full line width, whereas the width of > > gathered is the actual width of its contents. This is useful when you want > > to put parentheses around the structure. > > > > OK, so that was a red herring. Still don't know then why it's all > right-aligned....
I think that the attached patch fixes it. Jürgen, Ok for branch? -- Enrico
Index: src/mathed/InsetMathHull.cpp =================================================================== --- src/mathed/InsetMathHull.cpp (revision 22219) +++ src/mathed/InsetMathHull.cpp (working copy) @@ -249,7 +249,7 @@ char InsetMathHull::defaultColAlign(col_ { if (type_ == hullEqnArray) return "rcl"[col]; - if (type_ >= hullAlign) + if (type_ >= hullAlign && type_ != hullGather) return "rl"[col & 1]; return 'c'; }