diff options
author | Christian Lippka <cl@openoffice.org> | 2002-05-06 06:58:27 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-05-06 06:58:27 +0000 |
commit | 8aa0b22b69a0051277c123bbec7ca20ee5a23063 (patch) | |
tree | f993ff474d09185b30cabe91de6b96ae24f83219 /svx/source/unodraw | |
parent | 9aa083e3578456c8fd94fbe6025ebc5932da947e (diff) |
#99054# correct UINT16 items to sal_Int16
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 7ac8dd15844a..a3017fe7edf1 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoshape.cxx,v $ * - * $Revision: 1.93 $ + * $Revision: 1.94 $ * - * last change: $Author: cl $ $Date: 2002-04-25 09:54:23 $ + * last change: $Author: cl $ $Date: 2002-05-06 07:58:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2738,6 +2738,22 @@ uno::Any SvxShape::GetAnyForItem( SfxItemSet& aSet, const SfxItemPropertyMap* pM { // Hole Wert aus ItemSet aAny = aPropSet.getPropertyValue( pMap, aSet ); + + if( *pMap->pType != aAny.getValueType() ) + { + // since the sfx uint16 item now exports a sal_Int32, we may have to fix this here + if( ( *pMap->pType == ::getCppuType((const sal_Int16*)0)) && aAny.getValueType() == ::getCppuType((const sal_Int32*)0) ) + { + sal_Int32 nValue; + aAny >>= nValue; + aAny <<= (sal_Int16)nValue; + } + else + { + DBG_ERROR("SvxShape::GetAnyForItem() Returnvalue has wrong Type!" ); + } + } + } } |