* src/BaseDoc.py:
* src/docgen/PSDrawDoc.py: * src/docgen/SvgDrawDoc.py: * src/docgen/PdfDoc.py: * src/docgen/OpenOfficeDoc.py: * src/docgen/GtkPrint.py: * src/docgen/LPRDoc.py: * src/docgen/ODFDoc.py: * src/plugins/StatisticsChart.py: * src/plugins/Calendar.py: * src/ReportBase/_ReportUtils.py: Remove draw_bar function svn: r8254
This commit is contained in:
@@ -737,11 +737,7 @@ class StatisticsChart(Report):
|
||||
# right align bar to the text
|
||||
value = data[key]
|
||||
startx = stopx - (maxsize * value / max_value)
|
||||
path = ((startx, yoffset),
|
||||
(stopx, yoffset),
|
||||
(stopx, yoffset + row_h),
|
||||
(startx, yoffset + row_h))
|
||||
self.doc.draw_path('SC-bar', path)
|
||||
self.doc.draw_box('SC-bar',"",startx,yoffset,stopx-startx,row_h)
|
||||
# text after bar
|
||||
text = "%s (%d)" % (key, data[key])
|
||||
self.doc.draw_text('SC-text', text, textx, yoffset)
|
||||
|
||||
Reference in New Issue
Block a user