Skip to content

Commit

Permalink
BUG: fixed minor encoding error in python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
che85 committed May 10, 2020
1 parent 4058f0b commit 74cbfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlicerDevelopmentToolboxUtils/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def pixelmapAsRaw(pixmap):
byteArray = qt.QByteArray()
buffer = qt.QBuffer(byteArray)
pixmap.save(buffer, "PNG")
return "data:image/png;base64," + byteArray.toBase64().data()
return "data:image/png;base64," + byteArray.toBase64().data().decode("utf-8")

def showMainAppToolbars(self, show=True):
w = slicer.util.mainWindow()
Expand Down

0 comments on commit 74cbfbf

Please sign in to comment.