Martin Vermeer <[EMAIL PROTECTED]> writes:
| On Sat, Aug 24, 2002 at 02:32:27PM +0300, Martin Vermeer wrote:
>
>> Fix should be easy. Left as an exercise for the reader :-)
>>
>> Martin, off to Thessaloniki for a week!
>
| Yep, this does it. Couldn't resist -- patch attached.
>
| 2002-08-24 Martin Vermeer <[EMAIL PROTECTED]>
>
| * paragraph.C:
| * insets/insettext.C: fixed the 'deeper and deeper...' bug in nested
| environments.
Yes, this looks correct.
| Martin
| --
| Martin Vermeer [EMAIL PROTECTED]
| Helsinki University of Technology
| Department of Surveying
| P.O. Box 1200, FIN-02015 HUT, Finland
| :wq
>
| Index: paragraph.C
| ===================================================================
| RCS file: /cvs/lyx/lyx-devel/src/paragraph.C,v
| retrieving revision 1.226
| diff -u -p -r1.226 paragraph.C
| --- paragraph.C 2002/08/23 09:05:31 1.226
| +++ paragraph.C 2002/08/24 11:46:56
| @@ -177,7 +177,7 @@ Paragraph::~Paragraph()
>
| void Paragraph::write(Buffer const * buf, ostream & os,
| BufferParams const & bparams,
| - depth_type dth) const
| + depth_type & dth) const
| {
| // The beginning or end of a deeper (i.e. nested) area?
| if (dth != params().depth()) {
| Index: insettext.C
| ===================================================================
| RCS file: /cvs/lyx/lyx-devel/src/insets/insettext.C,v
| retrieving revision 1.327
| diff -u -p -r1.327 insettext.C
| --- insettext.C 2002/08/21 17:35:24 1.327
| +++ insettext.C 2002/08/24 11:55:35
| @@ -239,8 +239,9 @@ void InsetText::writeParagraphData(Buffe
| {
| ParagraphList::iterator it = paragraphs.begin();
| ParagraphList::iterator end = paragraphs.end();
| + Paragraph::depth_type dth = 0;
| for (; it != end; ++it) {
| - it->write(buf, os, buf->params, 0);
| + it->write(buf, os, buf->params, dth);
| }
| }
>
--
Lgb