Bug SS-181
1 vote

CFLabelRegion: Multiple evaluation and strange formatting

Created by Martin Kraska on 7/26/2014 10:34 PM Last Updated by Davide on 7/27/2014 2:47 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

In the example, the expression in the placeholder is evaluated 5 times instead of 1 time (when evaluated on the canvas).

This is annoying for lengthy regression tests (I just set up one for the Maxima plugin), as their duration is 5 times the expected amount of time.

Probably this is due to accessing the possible parts of the format vector individually instead of evaluating the expression once. This  is just a guess. But it can explain the inconsitent format behaviour:

  • First evaluation (a=1) provides the text, wich is "pass"
  • Subsequent  evaluations (a>1) result in fail and provide the background color "red"

This is independent of sym/num evaluation settings.

    Davide (Sunday, July 27, 2014 2:47 PM) #

Fixed, thank you Martin