[PATCH] stylesheet-fancy correct display with no images selected
Dave Herman
dvherman at gmail.com
Tue Dec 13 13:30:57 EST 2005
Consider this patch for the fancy stylesheet it checks for the existance
of a filename before creating a table entry.
Instructions for patch creation and submission are not clear/current.
This is from a "svn --diff" against the gnome2-gnucash trunk.
Index: src/report/stylesheets/stylesheet-fancy.scm
===================================================================
--- src/report/stylesheets/stylesheet-fancy.scm (revision 12153)
+++ src/report/stylesheets/stylesheet-fancy.scm (working copy)
@@ -289,16 +289,22 @@
(gnc:html-markup-b
(gnc:html-document-title doc)))))
- (gnc:html-table-set-cell!
- t 0 0
- (gnc:make-html-text
- (gnc:html-markup-img logopixmap)))
+ (if (and logopixmap
+ (not (string=? logopixmap "")))
+ ;; check for define image file
+ (gnc:html-table-set-cell!
+ t 0 0
+ (gnc:make-html-text
+ (gnc:html-markup-img logopixmap))) )
+;
+ (if (and headpixmap
+ (not (string=? headpixmap "")))
+ ;; check for define image file
+ (gnc:html-table-set-cell!
+ t 0 1
+ (gnc:make-html-text
+ (gnc:html-markup-img headpixmap))) )
- (gnc:html-table-set-cell!
- t 0 1
- (gnc:make-html-text
- (gnc:html-markup-img headpixmap)))
-
(apply
gnc:html-table-set-cell!
t 2 1
@@ -308,8 +314,7 @@
ssdoc))
(gnc:define-html-style-sheet
- 'version 1
- 'name (N_ "Fancy")
+ 'version 1.01 'name (N_ "Fancy")
'renderer fancy-renderer
'options-generator fancy-options)
More information about the gnucash-patches
mailing list