[Cuis-dev] Infinit loop with Layout

ken.dickey at whidbey.com ken.dickey at whidbey.com
Wed Apr 13 13:16:47 PDT 2022


On 2022-04-12 12:12, Hilaire Fernandes via Cuis-dev wrote:

> The following code put Cuis in an infinite loop. .. 
> (ZeroDivideLayout.txt)

Hilaire,

Thanks much for reporting this!

The loop is caused by a zero divide error in 
##PlacedMorph>>allocHeightForFactor: during a redraw.

Fix is attached.

Juan, please review and integrate.

I set a minimum proportional value to 0.01 (1%) and a minimum fixed 
value to 2 (pixels).

You may wish to use other default values.

Cheers,
-KenD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ZeroDivideLayout.txt
Type: text/x-fortran
Size: 340 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220413/31cbc5b5/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 5106-CuisCore-LayoutSpec+proportionalWidth-2022Apr13-13h03m-KenD.002.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220413/31cbc5b5/attachment.ksh>


More information about the Cuis-dev mailing list