GnuCash
Contact   Instructions
Bug 796861 - Report HTML Pie Chart - default value #f for colors makes the pie chart renderer crash
Summary: Report HTML Pie Chart - default value #f for colors makes the pie chart rende...
Status: NEW
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: git-maint
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-19 11:02 EDT by Carsten Rinke
Modified: 2018-09-20 04:20 EDT (History)
2 users (show)

See Also:


Attachments

Description Carsten Rinke 2018-09-19 11:02:24 EDT
If the pie chart renderer is called with the default value #f for colors it will crash at line 202

(map 
  (lambda (color) (string-append "\"" color "\""))
  (gnc:html-piechart-colors piechart))

Proposal:

In html-piechart.scm replace

(define (gnc:make-html-piechart)
  (gnc:make-html-piechart-internal '(pixels . -1) '(pixels . -1) #f #f #f #f #f #f #f #f #f #f #f))

with

(define (gnc:make-html-piechart)
  (gnc:make-html-piechart-internal '(pixels . -1) '(pixels . -1) #f #f #f '() #f #f #f #f #f #f #f))
Comment 1 Carsten Rinke 2018-09-20 04:20:42 EDT
Covered by PR#404
https://github.com/Gnucash/gnucash/pull/404

Note You need to log in before you can comment on or make changes to this bug.