From 04a3d585d475ec6681c656605b18538e57eac67e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 19 Sep 2002 16:56:35 +0000 Subject: [PATCH] fixed wrong pointer with scalar bug --- src/gdd/gdd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gdd/gdd.cc b/src/gdd/gdd.cc index 113800ab9..fed2f61b3 100644 --- a/src/gdd/gdd.cc +++ b/src/gdd/gdd.cc @@ -1352,8 +1352,8 @@ gddStatus gdd::put ( const gdd * dd ) pDst += byteCount; } - aitUint8* pSrc = (aitUint8*) dd->dataPointer(); - pSrc += aitSize[primitiveType()] * unusedSrcBelow; + aitUint8* pSrc = (aitUint8*) dd->dataVoid(); + pSrc += aitSize[dd->primitiveType()] * unusedSrcBelow; int gddStatus = aitConvert (this->primitiveType(), pDst, dd->primitiveType(), pSrc, srcCopySize); if ( gddStatus < 0 ) {