From 27feadf3343878d9e25fd5e959ca6df81b40e864 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 Jun 2003 23:38:05 +0000 Subject: [PATCH] only measure one line at a time git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wxPython/lib/dialogs.py b/wxPython/wxPython/lib/dialogs.py index b9fe4144e4..5afbd634a2 100644 --- a/wxPython/wxPython/lib/dialogs.py +++ b/wxPython/wxPython/lib/dialogs.py @@ -42,7 +42,7 @@ class wxMultipleChoiceDialog(wx.wxDialog): dc = wx.wxClientDC(self) height = 0 for line in msg.splitlines(): - height = height + dc.GetTextExtent(msg)[1] + 4 + height = height + dc.GetTextExtent(line)[1] + 2 stat = wx.wxStaticText(self, -1, msg) self.lbox = wx.wxListBox(self, 100, wx.wxDefaultPosition, wx.wxDefaultSize, lst, wx.wxLB_MULTIPLE)