From 5c3fbc6e4d0b4f20c55463aa3f78538ad1cfb946 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 23 May 2015 18:23:05 +0200 Subject: [PATCH] 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. --- src/propgrid/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 5679ab11f6..d38170bb38 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -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)) |