diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index c669a028b9..fe93ee18bb 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1196,7 +1196,7 @@ void wxDC::DrawLabel(const wxString& text, wxCoord x, y; if ( alignment & wxALIGN_RIGHT ) { - x = rect.GetRight() - width; + x = rect.GetRight() - width + 1; } else if ( alignment & wxALIGN_CENTRE_HORIZONTAL ) { @@ -1209,7 +1209,7 @@ void wxDC::DrawLabel(const wxString& text, if ( alignment & wxALIGN_BOTTOM ) { - y = rect.GetBottom() - height; + y = rect.GetBottom() - height + 1; } else if ( alignment & wxALIGN_CENTRE_VERTICAL ) { diff --git a/src/univ/ctrlrend.cpp b/src/univ/ctrlrend.cpp index 6039922384..70b27679fa 100644 --- a/src/univ/ctrlrend.cpp +++ b/src/univ/ctrlrend.cpp @@ -185,7 +185,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, { if ( alignment & wxALIGN_RIGHT ) { - x = rect.GetRight() - width; + x = rect.GetRight() - width + 1; } else if ( alignment & wxALIGN_CENTRE ) { @@ -198,7 +198,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, if ( alignment & wxALIGN_BOTTOM ) { - y = rect.GetBottom() - height; + y = rect.GetBottom() - height + 1; } else if ( alignment & wxALIGN_CENTRE_VERTICAL ) {