Kaydet (Commit) e01d0634 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba24 (1.19.18); FILE MERGED

2005/02/14 10:15:56 fs 1.19.18.1: #i42573# some exception safety while painting
üst 6aaf59a6
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: svdouno.cxx,v $ * $RCSfile: svdouno.cxx,v $
* *
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* last change: $Author: kz $ $Date: 2005-01-21 17:00:01 $ * last change: $Author: vg $ $Date: 2005-03-10 16:25:16 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -614,7 +614,14 @@ sal_Bool SdrUnoObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec& r ...@@ -614,7 +614,14 @@ sal_Bool SdrUnoObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec& r
uno::Reference< awt::XGraphics > x = pOut->CreateUnoGraphics(); uno::Reference< awt::XGraphics > x = pOut->CreateUnoGraphics();
xView->setGraphics( x ); xView->setGraphics( x );
Point aP = pOut->LogicToPixel( aRect.TopLeft() ); Point aP = pOut->LogicToPixel( aRect.TopLeft() );
xView->draw( aP.X(), aP.Y() ); try
{
xView->draw( aP.X(), aP.Y() );
}
catch( const uno::Exception& )
{
OSL_ENSURE( sal_False, "caught an exception while drawing the object!" );
}
} }
} }
break; break;
......
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