incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1360216 - /incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx
Date Wed, 11 Jul 2012 15:01:20 GMT
Author: hdu
Date: Wed Jul 11 15:01:20 2012
New Revision: 1360216

URL: http://svn.apache.org/viewvc?rev=1360216&view=rev
Log:
#i120237# cache the updated frame reference in the AquaSalGraphics

Modified:
    incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx

Modified: incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx?rev=1360216&r1=1360215&r2=1360216&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx (original)
+++ incubator/ooo/trunk/main/vcl/aqua/source/gdi/salvd.cxx Wed Jul 11 15:01:20 2012
@@ -188,11 +188,18 @@ sal_Bool AquaSalVirtualDevice::SetSize( 
 	}
 	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#



Mime
View raw message