editors/Viewer.py
changeset 2229 3c94bac4526e
parent 2177 10aa87518401
child 2301 5b8a7dd43f9f
--- 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