Kaydet (Commit) 7b45cd84 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

GetWin seen as NULL sometimes

Change-Id: I08974e3a8a3f34e2c1f0843c536e72ca0eb4b29d
(cherry picked from commit 4bf829ba)
üst 35e8488c
...@@ -262,10 +262,14 @@ SwRect SwAccessibleChild::GetBox( const SwAccessibleMap& rAccMap ) const ...@@ -262,10 +262,14 @@ SwRect SwAccessibleChild::GetBox( const SwAccessibleMap& rAccMap ) const
} }
else if ( mpWindow ) else if ( mpWindow )
{ {
aBox = SwRect( rAccMap.GetShell()->GetWin()->PixelToLogic( vcl::Window *pWin = rAccMap.GetShell()->GetWin();
if (pWin)
{
aBox = SwRect( pWin->PixelToLogic(
Rectangle( mpWindow->GetPosPixel(), Rectangle( mpWindow->GetPosPixel(),
mpWindow->GetSizePixel() ) ) ); mpWindow->GetSizePixel() ) ) );
} }
}
return aBox; return aBox;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment