r23516 - gnucash/branches/2.4/src/report/stylesheets - [23513]Fix report background image loading on Windows

Geert Janssens gjanssens at code.gnucash.org
Sun Dec 8 09:02:15 EST 2013


Author: gjanssens
Date: 2013-12-08 09:02:14 -0500 (Sun, 08 Dec 2013)
New Revision: 23516
Trac: http://svn.gnucash.org/trac/changeset/23516

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:
[23513]Fix report background image loading on Windows

Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm	2013-12-08 14:02:05 UTC (rev 23515)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm	2013-12-08 14:02:14 UTC (rev 23516)
@@ -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 14:02:05 UTC (rev 23515)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-fancy.scm	2013-12-08 14:02:14 UTC (rev 23516)
@@ -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 14:02:05 UTC (rev 23515)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm	2013-12-08 14:02:14 UTC (rev 23516)
@@ -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 14:02:05 UTC (rev 23515)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-plain.scm	2013-12-08 14:02:14 UTC (rev 23516)
@@ -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