[Cuis-dev] Changeset to make GUI code more robust
Hilaire Fernandes
hfern at free.fr
Mon Jan 26 12:23:05 PST 2026
This is what I tried to explained.
It occurs with Smalltalk Script, for example
(mySketch point: 0 at 0) color: (Color red adjustBrighness: 0.125)
In the constructed sketch below, when the user decided to invoke the
style dialog for point, this color is not one of the defined ones in the
DrGeo drop down colors menu. In that circumstance, the index is zero and
the GUI crash. In the picture below, I can set the selected color to
none (the button is empty) because nil is returned instead of an index
access error. For DrGeo to take of this situation, I need the GUI to
return nil and not throw an error.
Le 26/01/2026 à 19:54, Juan Vuletich a écrit :
>
> I can not see how #getListItem: could be called with a 0 argument.
> Perhaps it is the sender in DrGeo that can take care of that?
>
> Thanks,
>
--
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260126/1735f235/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7Gk14KDQ109D0LJR.png
Type: image/png
Size: 16841 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260126/1735f235/attachment.png>
More information about the Cuis-dev
mailing list