Labels: Type-Defect Priority-Medium
New issue 923 by benjamin...(a)gmail.com: EyeSee red-square-of-death from
ESValueLabelDecorator>>chooseNonOverlappingValues has the line...
chosenValues add: (self values minValue: [:each | each value]).
but minValue: injects (Float infinity) so that if 'self values' is empty
then (Float infinity) is added to choseValues, which later are #rounded
causing an error in the Morph drawing and subsequent RSOD for the EyeSee
I am not sure if I've done something wrong that causes 'self values' to be
empty, but in any case, this should not kill the Morph.
Just for further information, here is the triggering code...
browser transmit from: #navigationtree; to: #attributes; andShow:
[ :a |
title: 'Optimize' ;
[ :renderer :input |
diagramTitle: '@', input absorbedLoad asString , 'kW' ;
x: #ratedOutput ;
y: [ :m | m powerLossForAbsorbedLoad: input absorbedLoad ] ;
addXDecorator: ESValueLabelDecorator new ;
models: (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1
ratedOutput < m2 ratedOutput ]).
where if in a Workspace I do...
models:= (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1
ratedOutput < m2 ratedOutput ])'.
models collect: [ :m | m ratedOutput -> m powerLossForAbsorbedLoad: 24
...then all the data looks okay.
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at: