summaryrefslogtreecommitdiff
path: root/cppcanvas/source/tools
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:57:57 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:57:57 +0000
commit83dafdac88131cd3247aee4d72a9ebf0a49dbf92 (patch)
tree8a75a876cc1d77df4767e384430e76144faaf0b7 /cppcanvas/source/tools
parent570383c885cb6253d9821538c2efeb9c9f54e7ce (diff)
INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/11/22 15:23:45 thb 1.2.2.3: #110496# Avoiding ternary operators returning different types on their branches: triggers Solaris compiler bug 2004/07/20 19:09:02 thb 1.2.2.2: #110496# Unified include statements; removed external prefix from boost includes 2004/04/05 15:58:50 thb 1.2.2.1: Resync with canvas01 changes
Diffstat (limited to 'cppcanvas/source/tools')
-rw-r--r--cppcanvas/source/tools/canvasgraphichelper.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx
index 18f8f000b012..f369252e9a04 100644
--- a/cppcanvas/source/tools/canvasgraphichelper.cxx
+++ b/cppcanvas/source/tools/canvasgraphichelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: canvasgraphichelper.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: thb $ $Date: 2004-03-18 10:41:07 $
+ * last change: $Author: rt $ $Date: 2004-11-26 20:57:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,7 +59,7 @@
*
************************************************************************/
-#include "canvasgraphichelper.hxx"
+#include <canvasgraphichelper.hxx>
#ifndef _DRAFTS_COM_SUN_STAR_RENDERING_XGRAPHICDEVICE_HPP_
#include <drafts/com/sun/star/rendering/XGraphicDevice.hpp>
@@ -79,7 +79,7 @@
#endif
#include <cppcanvas/polypolygon.hxx>
-#include "tools.hxx"
+#include <tools.hxx>
using namespace ::com::sun::star;
@@ -125,7 +125,11 @@ namespace cppcanvas
void CanvasGraphicHelper::setClip( const PolyPolygonSharedPtr& rClipPoly )
{
mpClipPolyPolygon = rClipPoly;
- maRenderState.Clip = rClipPoly.get() != NULL ? rClipPoly->getUNOPolyPolygon() : NULL;
+
+ if( rClipPoly.get() )
+ maRenderState.Clip = rClipPoly->getUNOPolyPolygon();
+ else
+ maRenderState.Clip.clear();
}
PolyPolygonSharedPtr CanvasGraphicHelper::getClip() const