[Gambas-user] Make {H,V}Split raise expressive Layout errors?

Benoît Minisini gambas at ...1...
Sun Apr 6 16:33:08 CEST 2014


Le 06/04/2014 16:03, Tobias Boege a écrit :
> Hi Benoit,
>
> if I have an {H,V}Split and happen to assign to Layout an Integer[] whose
> size is lower than the number of children in the split, an error is raised
> about wanting a number but getting Null instead. (I don't do such things but
> other people seem to do and they're confused about the error they see.)
>
> Looking at gb.gui.base, the splits seem to be supposed to handle such cases
> but they're apparently not doing it right. Attached is a project.
>
> What is the expected behaviour when giving too few elements to Layout,
> anyway? There is nothing (I can find) about that in the docs. I would
> personally like to see an error message in that case - but I'm satisfied
> when the strategy is documented.
>
> Regards,
> Tobi
>

Fixed in revision #6232.

Regards,

-- 
Benoît Minisini




More information about the User mailing list