Determine correct checkbox size when using theme.

This commit is contained in:
Maarten Bent
2015-12-16 20:59:27 +01:00
parent dd29ecf840
commit 64c4e0674c
3 changed files with 20 additions and 5 deletions

View File

@@ -1152,9 +1152,7 @@ bool wxDataViewToggleRenderer::WXActivateCell(const wxRect& WXUNUSED(cellRect),
wxSize wxDataViewToggleRenderer::GetSize() const
{
// the window parameter is not used by GetCheckBoxSize() so it's
// safe to pass NULL
return wxRendererNative::Get().GetCheckBoxSize(NULL);
return wxRendererNative::Get().GetCheckBoxSize(GetView());
}
// ---------------------------------------------------------