Use const wxWindow in wxSystemSettings::GetMetric
This commit is contained in:
@@ -2718,8 +2718,7 @@ PRectangle wxSTCListBox::GetDesiredRect() const
|
||||
|
||||
// Add space for a scrollbar if needed.
|
||||
if ( count > desiredVisibleRows )
|
||||
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X,
|
||||
const_cast<wxWindow*>(wxDynamicCast(this, wxWindow)));
|
||||
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, this);
|
||||
|
||||
// Add borders.
|
||||
maxw += 2 * m_borderSize;
|
||||
|
Reference in New Issue
Block a user