From c1e5e881345b78de4184f39ed6d115f796ec8a9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 17 Feb 2000 17:09:11 +0000 Subject: [PATCH] fixed inaccurancy in container layouting with wxHTML_ALIGN_JUSTIFY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlcell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 7b6eb3aacd..89da480870 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -439,12 +439,14 @@ void wxHtmlContainerCell::Layout(int w) int counter = 0; int step = (s_width - xpos); if (step < 0) step = 0; + xcnt--; while (line != cell) { line -> SetPos(line -> GetPosX() + s_indent + (counter++ * step / xcnt), ypos + line -> GetPosY()); line = line -> GetNext(); } + xcnt++; } ypos += ysizedown; -- 2.45.2