Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#942 Blank lines in title causes StringIndexOutOfBoundsException

1.0.x
closed-fixed
David Gilbert
General (896)
5
2014-07-29
2009-07-07
David Gilbert
No

See this entry in the forum:

http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=28573

Example title that causes exception:

JFreeChart jfreechart = ChartFactory.createPieChart("Pie Chart Demo 1\n\n\ntestnew line", piedataset, true, true, false);

Discussion

  • simon04
    simon04
    2014-07-26

    Seems to be fixed in the meanwhile

        @Test
        public void testBug942() throws Exception {
            final String title = "Pie Chart Demo 1\n\n\ntestnew line";
            assertEquals(title,
                    ChartFactory.createPieChart(title, new DefaultPieDataset(),
                            true, true, false).getTitle().getText());
        }
    
     
  • David Gilbert
    David Gilbert
    2014-07-29

    Thanks, I committed the test and will close this ticket.

     
  • David Gilbert
    David Gilbert
    2014-07-29

    • status: open --> closed-fixed
    • assigned_to: David Gilbert
    • Group: --> 1.0.x