Re: fp_line::calculateWidthOfLine() asserts


Subject: Re: fp_line::calculateWidthOfLine() asserts
From: Matti Picus (matti@picus.org)
Date: Thu Sep 06 2001 - 01:43:37 CDT


I think the problem is conceptual, and would be clearer if there was
documentation about the basic structures like
fp_Line. fp_Line::recalcMaxWidth() considers a line to consist of the text
between one left margin and one right margin, minus tabs. But
fp_Line::calculateWidthOfLine() considers a line to be a collection of
runs, each consisting of text sequences. Who insures that the sum of the
length of the runs fits between the margins? Apparently, no one, and I get
an assertion.

Is there a mechanism to reformat a group of lines so that they fit in
between the margins? Does the import process call this mechanism? Should
the mechanism be called automatically instead of the UT_ASSERT?

Matti

At 12:12 AM 6/9/2001 +0200, you wrote:
>According to Matti Picus <matti@picus.org>:
> > Any guesses as to why
> > UT_ASSERT(iX <= m_iMaxWidth);
> > at line 1562 in fp_line::calculateWidthOfLine fails?
>
>This is bug 1549 and 1284
>
>Oh and a fix would be welcome :-)
>
>Hub



This archive was generated by hypermail 2b25 : Thu Sep 06 2001 - 00:45:08 CDT