From 9b8b5b085dac92846786880386d794b5e3109374 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 7 Apr 2014 16:23:05 +0000 Subject: [PATCH] Object position calculation correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 239883ba98..65b92f0c0c 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -5155,7 +5155,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, wxRichTextDrawingContext& context, co { // We can move it to the correct position at this point // TODO: probably need to add margin - child->Move(GetPosition() + wxPoint(currentWidth + (wxMax(leftIndent, leftIndent + leftSubIndent)), currentPosition.y)); + child->Move(GetPosition() + wxPoint(currentWidth + startOffset, currentPosition.y)); } // Cases: