Undo mimicking faulty wxDC::DrawLabel() wxALIGN_RIGHT positioning
Revert b642747fd2
(Fix right aligned text position in wxDVC on MSW with
system theme, 2015-09-30) which in wxRendererXP::DrawItemText() mimicks
the off-by-one with right alignment of wxDC::DrawLabel() that got fixed
by the previous commit.
There's not a similar change copying wxDC::DrawLabel()'s former
off-by-one behaviour with wxALIGN_BOTTOM that would need reverting.
Both alignments now result in the same text positioning with both
drawing functions.
This commit is contained in:
@@ -1093,10 +1093,7 @@ void wxRendererXP::DrawItemText(wxWindow* win,
|
||||
if ( align & wxALIGN_CENTER_HORIZONTAL )
|
||||
textFlags |= DT_CENTER;
|
||||
else if ( align & wxALIGN_RIGHT )
|
||||
{
|
||||
textFlags |= DT_RIGHT;
|
||||
rc.right--; // Alignment is inconsistent with DrawLabel otherwise
|
||||
}
|
||||
else
|
||||
textFlags |= DT_LEFT;
|
||||
|
||||
|
Reference in New Issue
Block a user