Helpviewer/HelpBrowserWV.py

changeset 38
5fe2b7deab15
parent 13
1af94a91f439
child 96
9624a110667d
--- a/Helpviewer/HelpBrowserWV.py	Thu Jan 07 19:03:58 2010 +0000
+++ b/Helpviewer/HelpBrowserWV.py	Fri Jan 08 14:44:33 2010 +0000
@@ -874,8 +874,8 @@
             imageBuffer = QBuffer()
             imageBuffer.open(QIODevice.ReadWrite)
             if pixmap.save(imageBuffer, "PNG"):
-                html.replace("IMAGE_BINARY_DATA_HERE", 
-                             str(imageBuffer.buffer().toBase64()))
+                html = html.replace("IMAGE_BINARY_DATA_HERE", 
+                             bytes(imageBuffer.buffer().toBase64()).decode())
             html = html.format(
                 title, 
                 reply.errorString(), 

eric ide

mercurial