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
This commit is contained in:
Robin Dunn
2003-02-20 19:27:56 +00:00
parent 335ac56efb
commit 3a0b9a4453

View File

@@ -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: