From ef4b5aad82da7133e89e37e3e04791398d6fb3a6 Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Wed, 11 Jul 2012 14:01:20 +0000 Subject: Related: #i120237# cache the updated frame reference in AquaSalGraphics (cherry picked from commit 6e4214e604f8aa86b08a7fbe315a80d7751ffc2d) Change-Id: Id10d49737ba773e95a3198997e25fbfd98708f65 --- vcl/aqua/source/gdi/salvd.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vcl/aqua/source') diff --git a/vcl/aqua/source/gdi/salvd.cxx b/vcl/aqua/source/gdi/salvd.cxx index 109b3fb94d0f..e4d5df30fd8d 100644 --- a/vcl/aqua/source/gdi/salvd.cxx +++ b/vcl/aqua/source/gdi/salvd.cxx @@ -182,11 +182,18 @@ sal_Bool AquaSalVirtualDevice::SetSize( long nDX, long nDY ) } else { - // default to a NSView target context, any will do + // default to a NSView target context AquaSalFrame* pSalFrame = mpGraphics->getGraphicsFrame(); if( !pSalFrame || !AquaSalFrame::isAlive( pSalFrame )) + { if( !GetSalData()->maFrames.empty() ) + { + // get the first matching frame pSalFrame = *GetSalData()->maFrames.begin(); + // update the frame reference + mpGraphics->setGraphicsFrame( pSalFrame ); + } + } if( pSalFrame ) { // #i91990# -- cgit