Menu

#8 Theme.createGradient is one line short

v2.1
closed-fixed
rendering (5)
1
2009-02-25
2009-02-24
George P
No

Theme.createGradient(int, int, int) returns an int[] that is "length" long. But the for loop fills the array from 0 till lenght-2. Also, [0] is already filled prior to the for loop.
It looks like that the variable "count" must be equal to length, but I don't know if this will mess the colors. Also, the for loop must begin from 1, so that [0] is not re-appointed a new value.

Discussion

  • Pashalis Padeleris

    Fixed. The for loop should produce count values starting from result[1].

     
  • Pashalis Padeleris

    • milestone: --> v2.1
    • priority: 5 --> 1
    • assigned_to: nobody --> padeler
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB