AUDIT: r23514 - gnucash/branches/2.4/src/report/stylesheets - Fix report background image loading on Windows

Geert Janssens gjanssens at code.gnucash.org
Sun Dec 8 08:58:01 EST 2013


Author: gjanssens
Date: 2013-12-08 08:58:01 -0500 (Sun, 08 Dec 2013)
New Revision: 23514
Trac: http://svn.gnucash.org/trac/changeset/23514

Modified:
   gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm
   gnucash/branches/2.4/src/report/stylesheets/stylesheet-fancy.scm
   gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm
   gnucash/branches/2.4/src/report/stylesheets/stylesheet-plain.scm
Log:
Fix report background image loading on Windows

BP

Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm	2013-12-08 13:48:31 UTC (rev 23513)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm	2013-12-08 13:58:01 UTC (rev 23514)
@@ -368,7 +368,7 @@
 	     (not (string=? bgpixmap "")))
 	(gnc:html-document-set-style!
 	 ssdoc "body" 
-	 'attribute (list "background" bgpixmap)))
+	 'attribute (list "background" (make-file-url bgpixmap))))
     
     (gnc:html-document-set-style!
      ssdoc "table" 

Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-fancy.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-fancy.scm	2013-12-08 13:48:31 UTC (rev 23513)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-fancy.scm	2013-12-08 13:58:01 UTC (rev 23514)
@@ -363,7 +363,7 @@
 	     (not (string=? bgpixmap "")))
 	(gnc:html-document-set-style!
 	 ssdoc "body" 
-	 'attribute (list "background" bgpixmap)))
+	 'attribute (list "background" (make-file-url bgpixmap))))
     
     (gnc:html-document-set-style!
      ssdoc "table" 

Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm	2013-12-08 13:48:31 UTC (rev 23513)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm	2013-12-08 13:58:01 UTC (rev 23514)
@@ -382,7 +382,7 @@
 	     (not (string=? bgpixmap "")))
 	(gnc:html-document-set-style!
 	 ssdoc "body" 
-	 'attribute (list "background" bgpixmap)))
+	 'attribute (list "background" (make-file-url bgpixmap))))
     
     (gnc:html-document-set-style!
      ssdoc "table" 

Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-plain.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-plain.scm	2013-12-08 13:48:31 UTC (rev 23513)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-plain.scm	2013-12-08 13:58:01 UTC (rev 23514)
@@ -115,7 +115,7 @@
          (not (string=? bgpixmap "")))
     (gnc:html-document-set-style!
      ssdoc "body"
-     'attribute (list "background" bgpixmap)))
+     'attribute (list "background" (make-file-url bgpixmap))))
 
     (gnc:html-document-set-style!
        ssdoc "table"



More information about the gnucash-changes mailing list