Don't assert in wxRenderer::GetHeaderButtonMargin()
Even if we don't have any way to determine the real margin, don't assert in this method implementation in wxGTK and wxOSX, but just return 0 instead. This fixes asserts when trying to fit a column of wxDataViewCtrl, by double clicking a separator after it, to its contents. See #13685.
This commit is contained in:
parent
e9fdda8638
commit
857a8a1ba1
@ -269,8 +269,7 @@ int wxRendererGTK::GetHeaderButtonHeight(wxWindow *WXUNUSED(win))
|
||||
|
||||
int wxRendererGTK::GetHeaderButtonMargin(wxWindow *WXUNUSED(win))
|
||||
{
|
||||
wxFAIL_MSG( "GetHeaderButtonMargin() not implemented" );
|
||||
return -1;
|
||||
return 0; // TODO: How to determine the real margin?
|
||||
}
|
||||
|
||||
|
||||
|
@ -251,8 +251,7 @@ int wxRendererMac::GetHeaderButtonHeight(wxWindow* WXUNUSED(win))
|
||||
|
||||
int wxRendererMac::GetHeaderButtonMargin(wxWindow *WXUNUSED(win))
|
||||
{
|
||||
wxFAIL_MSG( "GetHeaderButtonMargin() not implemented" );
|
||||
return -1;
|
||||
return 0; // TODO: How to determine the real margin?
|
||||
}
|
||||
|
||||
void wxRendererMac::DrawTreeItemButton( wxWindow *win,
|
||||
|
Loading…
Reference in New Issue
Block a user