On 11-Aug-2001 Garst R. Reese wrote:

>> PS: The first line in LyXText::fill() is
>>         if (paper_width < 0)
>>                 return 20;
>> 
>> Why 20 is returned and not 0 ??
> Let me guess:
> Unless another test is done, a value of 0 would imply that you could
> create 0 sized rows on negative width paper. I have not actually tried
> that because my stationer considers that sized paper obscene. I am
> curious as to how a negative paper_width is allowed to occur in the
> first place.
> grep src/ChangeLog paper_width

Negative paperwidth means that the paper width is infinite (no rowbreak!)
no fill between words is needed (but why do we return 20 then???)

I don't know why 20 is returned maybe it worked ;), but anyway if returning
0 fixes something and doesn't break LTR then just return 0 (seems anyway
the right thing to do for fill, but Dekel you would have to test this as
we don't use RTL so you have to test/fix all this problems by yourself.
When I see something which seems wrong in RTL to me I normaly insert a
#warning for you to have a look!

          Jürgen


--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Your reasoning is excellent -- it's only your basic assumptions that are wrong.

Reply via email to