#241 Bug in ColorLookup.cpp: SVGColorMap

None
pending
Hervé Drolon
None
5
2014-06-16
2014-06-12
No

Hi there

The SVGColorMap in ColorLookup.cpp has a mistake in the alphabetical order:

Current order:

  1. gray
  2. grey
  3. green
  4. greenyellow
  5. honeydew

Fix:

  1. gray
  2. green
  3. greenyellow
  4. grey
  5. honeydew

This causes the binary search to fail for e.g."green". I really wonder why nobody noticed this yet! Nobody using the good old-fashioned red, green and blue anymore? :)

Keep up the good work and best regards,
Christian

Discussion

  • Hervé Drolon
    Hervé Drolon
    2014-06-14

    • status: open --> pending
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon
    Hervé Drolon
    2014-06-14

    Hi,

    Thanks for the bug fix, it is now fixed in the CVS.

    Hervé

     
  • Thanks, Hervé!

    Christian