Kaydet (Commit) 6550c7c0 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i120273# workaround a crash on OSX when an VirtualDevice is reused that was…

#i120273# workaround a crash on OSX when an VirtualDevice is reused that was created for a now dead window

regression was introduced by the changes for #i116758#

Patch-By: Herbert Duerr
Suggested-By: Herbert Duerr
Found-By: Herbert Duerr
üst b8f5370a
......@@ -188,10 +188,11 @@ sal_Bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
}
else
{
// default to a NSView target context
// default to a NSView target context, any will do
AquaSalFrame* pSalFrame = mpGraphics->getGraphicsFrame();
if( !pSalFrame && !GetSalData()->maFrames.empty() )
pSalFrame = *GetSalData()->maFrames.begin();
if( !pSalFrame || !AquaSalFrame::isAlive( pSalFrame ))
if( !GetSalData()->maFrames.empty() )
pSalFrame = *GetSalData()->maFrames.begin();
if( pSalFrame )
{
// #i91990#
......
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