]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove wxGTK-specific text shift in wxRenderer::DrawHeaderButtonContents().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 May 2010 10:47:28 +0000 (10:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 May 2010 10:47:28 +0000 (10:47 +0000)
This was probably related to the code removed by r63947 and doesn't seem to be
needed here neither (and could presumably result in the same problems as in
the ticket #11780).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/renderg.cpp

index 66dfb6e330db3f6fa225642dd6ce63852540962a..baf845cb63a521d7f1177f07fdb16d9a55c9f6ef 100644 (file)
@@ -386,9 +386,6 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
         dc.GetTextExtent( label, &tw, &th, &td);
         labelWidth += tw;
         y = rect.y + wxMax(0, (rect.height - (th+td)) / 2);
-#ifdef __WXGTK__
-        y += 2; // No idea why.
-#endif
 
         // truncate and add an ellipsis (...) if the text is too wide.
         int targetWidth = rect.width - arrowSpace - bmpWidth - 2*margin;