summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slidebitmap.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 13:40:28 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 13:40:28 +0000
commit6490fca6a5dd3d95f1da83515ef6af78347db36a (patch)
tree7d8d0e678a8156c4961db220c6e7084fed2ce44d /slideshow/source/engine/slidebitmap.cxx
parentb42194059ad1cbb936dcb96fcce875bcb35e41da (diff)
INTEGRATION: CWS presfixes12 (1.8.12); FILE MERGED
2007/02/25 01:10:23 thb 1.8.12.1: #i37778# Cleared up error handling a lot: no longer quenching RuntimeExceptions; reporting assertions in the debug case; ViewLayer now reports resized sprite (which needs re-render from all shapes); fixed missing subset area reduction for glyph-level animations; added return of resize state from Layer::commitLayerBounds(); adapted unit tests to corrected behaviour
Diffstat (limited to 'slideshow/source/engine/slidebitmap.cxx')
-rw-r--r--slideshow/source/engine/slidebitmap.cxx37
1 files changed, 26 insertions, 11 deletions
diff --git a/slideshow/source/engine/slidebitmap.cxx b/slideshow/source/engine/slidebitmap.cxx
index 03e62d296a37..a01fb362c616 100644
--- a/slideshow/source/engine/slidebitmap.cxx
+++ b/slideshow/source/engine/slidebitmap.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: slidebitmap.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: kz $ $Date: 2006-12-13 15:20:24 $
+ * last change: $Author: obo $ $Date: 2007-07-17 14:40:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -42,6 +42,8 @@
#include <com/sun/star/rendering/XCanvas.hpp>
#include <com/sun/star/rendering/XBitmap.hpp>
+#include <comphelper/anytostring.hxx>
+#include <cppuhelper/exc_hlp.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
@@ -85,18 +87,31 @@ namespace slideshow
maOutputPos.getY() );
::canvas::tools::setRenderStateTransform( aRenderState, aTranslation );
- if( maClipPoly.count() )
+ try
{
- // TODO(P1): Buffer the clip polygon
- aRenderState.Clip =
- ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
- rCanvas->getUNOCanvas()->getDevice(),
- maClipPoly );
+ if( maClipPoly.count() )
+ {
+ // TODO(P1): Buffer the clip polygon
+ aRenderState.Clip =
+ ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ rCanvas->getUNOCanvas()->getDevice(),
+ maClipPoly );
+ }
+
+ rCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
+ aViewState,
+ aRenderState );
+ }
+ catch( uno::Exception& )
+ {
+ OSL_ENSURE( false,
+ rtl::OUStringToOString(
+ comphelper::anyToString( cppu::getCaughtException() ),
+ RTL_TEXTENCODING_UTF8 ).getStr() );
+
+ return false;
}
- rCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
- aViewState,
- aRenderState );
return true;
}