From 3a0b9a44531d501e8eaeaaefb12bccd5690c474f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Feb 2003 19:27:56 +0000 Subject: [PATCH] Fix for Bug #689958, an endless loop in printout.py git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/printout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wxPython/lib/printout.py b/wxPython/wxPython/lib/printout.py index c6eb436c2d..6f80e86639 100644 --- a/wxPython/wxPython/lib/printout.py +++ b/wxPython/wxPython/lib/printout.py @@ -93,7 +93,7 @@ class PrintBase: return ln_text, "" try: - w, h = self.DC.GetTextExtent(split[0]) + w, h = self.DC.GetTextExtent(" " + split[0]) if w >= width: return ln_text, "" except: