GnuCash
Contact   Instructions
Bug 796862 - Report HTML Scatter Chart - default value #f for makercolor makes the scatter chart renderer crash
Summary: Report HTML Scatter Chart - default value #f for makercolor makes the scatter...
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:25 EDT by Carsten Rinke
Modified: 2018-09-20 04:21 EDT (History)
2 users (show)

See Also:


Attachments

Description Carsten Rinke 2018-09-19 11:25:30 EDT
If the scatter chart renderer is called with the default value #f for markercolor it will crash at line 145

(markercolor (string-append "#" (gnc:html-scatter-markercolor scatter)))
ERROR: In procedure string-append: Wrong type (expecting string): #f

Proposal:

In html-scatter.scm replace

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

with

(define (gnc:make-html-scatter)
  (gnc:make-html-scatter-internal '(pixels . -1) '(pixels . -1) #f #f #f #f '() #f "ffffff"))
Comment 1 Carsten Rinke 2018-09-20 04:21:36 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.