fixed ambiguous call to wxMacCarbonEvent::SetParameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -627,9 +627,9 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
|
|||||||
adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ;
|
adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ;
|
||||||
if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetHeight() < toplevelWindow->GetMinHeight() )
|
if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetHeight() < toplevelWindow->GetMinHeight() )
|
||||||
adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
|
adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
|
||||||
Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
|
const Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
|
||||||
if ( !EqualRect( &newRect , &adjustedRect ) )
|
if ( !EqualRect( &newRect , &adjustedRect ) )
|
||||||
cEvent.SetParameter( kEventParamCurrentBounds , &adjustedRect ) ;
|
cEvent.SetParameter( kEventParamCurrentBounds , adjustedRect ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = noErr ;
|
result = noErr ;
|
||||||
|
Reference in New Issue
Block a user