INTEGRATION: CWS merge20to201v2 (1.4.8); FILE MERGED

2005/10/07 14:04:32 hr 1.4.8.1: #i55617: merge OOO680 CWS macosx11
This commit is contained in:
Oliver Bolte 2005-10-13 08:42:40 +00:00
parent cb893b7483
commit 6a452499a4

View file

@ -4,9 +4,9 @@
*
* $RCSfile: mediawindow_impl.cxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:43:42 $
* last change: $Author: obo $ $Date: 2005-10-13 09:42:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -247,8 +247,15 @@ void MediaWindowImpl::onURLChanged()
aArgs[ 0 ] = uno::makeAny( nWndHandle );
aArgs[ 1 ] = uno::makeAny( awt::Rectangle( aPoint.X(), aPoint.Y(), aSize.Width(), aSize.Height() ) );
if( nWndHandle != 0 )
xPlayerWindow = getPlayer()->createPlayerWindow( aArgs );
try
{
if( nWndHandle != 0 )
xPlayerWindow = getPlayer()->createPlayerWindow( aArgs );
}
catch( uno::RuntimeException )
{
// happens eg, on MacOSX where Java frames cannot be created from X11 window handles
}
setPlayerWindow( xPlayerWindow );