Use variable of type long to store a style flags returned by GetWindowStyleFlag function.

Since wxWindowBase::GetWindowStyleFlag() returns long the variable used to hold returned value should be also of the same type.
This commit is contained in:
Artur Wieczorek
2015-05-23 18:23:05 +02:00
parent 4c772b4221
commit 5c3fbc6e4d

View File

@@ -690,7 +690,7 @@ void wxPropertyGridManager::DoThaw()
void wxPropertyGridManager::SetWindowStyleFlag( long style )
{
int oldWindowStyle = GetWindowStyleFlag();
long oldWindowStyle = GetWindowStyleFlag();
wxWindow::SetWindowStyleFlag( style );
m_pPropGrid->SetWindowStyleFlag( (m_pPropGrid->GetWindowStyleFlag()&~(wxPG_MAN_PASS_FLAGS_MASK)) |