summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/misc/ImplHelper.cxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-03-15 05:56:03 +0000
committerTino Rachui <tra@openoffice.org>2001-03-15 05:56:03 +0000
commitf34b498d93debceedc8d2dde7fd52408edeabe92 (patch)
treeadb999256568d1eacb5829de27dbde242c37f85c /dtrans/source/win32/misc/ImplHelper.cxx
parent0876fa10216c78474b89a7e3f8ed9b3a1af235ae (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/source/win32/misc/ImplHelper.cxx')
-rw-r--r--dtrans/source/win32/misc/ImplHelper.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx
index ee8a427eb651..df13e106e625 100644
--- a/dtrans/source/win32/misc/ImplHelper.cxx
+++ b/dtrans/source/win32/misc/ImplHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ImplHelper.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: tra $ $Date: 2001-03-09 08:48:25 $
+ * last change: $Author: tra $ $Date: 2001-03-15 06:56:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -281,7 +281,11 @@ sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc )
__try
{
petcDest->cfFormat = petcSrc->cfFormat;
- petcDest->ptd = CopyTargetDevice(petcSrc->ptd);
+
+ petcDest->ptd = NULL;
+ if ( NULL != petcSrc->ptd )
+ petcDest->ptd = CopyTargetDevice(petcSrc->ptd);
+
petcDest->dwAspect = petcSrc->dwAspect;
petcDest->lindex = petcSrc->lindex;
petcDest->tymed = petcSrc->tymed;