From 956ddeca4a16c758185d1ac92156033e1c840eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 22 Feb 2000 20:09:27 +0000 Subject: [PATCH] fixed divide by zero exception when layouting justified text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlcell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 89da480870..0ca4bb2524 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -440,7 +440,7 @@ void wxHtmlContainerCell::Layout(int w) int step = (s_width - xpos); if (step < 0) step = 0; xcnt--; - while (line != cell) { + if (xcnt > 0) while (line != cell) { line -> SetPos(line -> GetPosX() + s_indent + (counter++ * step / xcnt), ypos + line -> GetPosY()); -- 2.50.0