--- a/controls/CustomToolTip.py Tue Jun 26 14:48:44 2018 +0300
+++ b/controls/CustomToolTip.py Tue Jun 26 17:34:15 2018 +0300
@@ -137,7 +137,7 @@
max_width = max_height = 0
# Create a memory DC for calculating text extent
- dc = wx.MemoryDC()
+ dc = wx.MemoryDC(wx.EmptyBitmap(1, 1))
dc.SetFont(self.Font)
# Compute max tip text size
--- a/editors/Viewer.py Tue Jun 26 14:48:44 2018 +0300
+++ b/editors/Viewer.py Tue Jun 26 17:34:15 2018 +0300
@@ -770,7 +770,7 @@
dc.SetFont(font)
width, _height = dc.GetTextExtent("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
self.SetFont(font)
- self.MiniTextDC = wx.MemoryDC()
+ self.MiniTextDC = wx.MemoryDC(wx.EmptyBitmap(1, 1))
self.MiniTextDC.SetFont(wx.Font(faces["size"] * 0.75, wx.SWISS, wx.NORMAL, wx.NORMAL, faceName=faces["helv"]))
self.CurrentScale = None