Comment 2 for bug 395204

Revision history for this message
In , Martin (debacle) wrote : Segfault with names longer than 11 chars - Pie/Pie3D()

Very similar to the original bug report, just another
constructor and three characters more until it segfaults:

import gdchart

myPie = gdchart.Pie3D()
myPie.width = 250
myPie.height = 250
myPie.title = "Pie3D"
myPie.setData(1, 2, 3, 4, 5)
myPie.setLabels(["One123456789", "Two", "Three", "Four", "Five"])
myPie.color = ["red", "green", "yellow", "orange", "blue"]
myPie.explode = [0, 0, 20, 0, 0]
myPie.draw("pie3D.png")

(as http://www.nullcube.com/software/pygdchart2/doc/pies.html,
but with longer first label)

Cheers, WB