Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#84 zgrviewer fails to render dot files with non-lowercase color

closed
zvtm (49)
5
2012-10-24
2009-06-20
Anonymous
No

zgrviewer 8.2 (or 0.9.0 snapshot as of 18 june 2009) fails to render the attached dot file correctly. If one simply changes the colors to lowercase, the dot file is now rendered with the correct fill color.

The problem is in zvtm, Utilities#getColorByKeyword, which looks up its argument in a hashtable whose keys are all lowercase, but does not normalize its argument (i.e. set it to lowercase). Unfortunately zvtm's behaviour here is not fail-fast -- SVGStyle#setColor will accept a null color and then set the flag strokeColorDefined to true, which will cause a subsequent NPE.

A patch will be uploaded immediately after this bug entry is created.

Please direct any questions to:

David J. Hamilton
hamilton37@llnl.gov

Discussion

  • Nobody/Anonymous

     
  • Emmanuel Pietriga

    Patch commited in SVN on 20090622. Thanks for your contribution.

     

Anonymous
Anonymous

Cancel  Add attachments