summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-06-27 07:24:32 +0000
committerMathias Bauer <mba@openoffice.org>2002-06-27 07:24:32 +0000
commit6e3fa3afc424817b688bc050c4c5185472e4480b (patch)
tree9c6beb648f601341e0cb5409312292c15d9512fd /svx/source/items
parentaf7c645e3d08adf374748f1bf3be7ca741270022 (diff)
#100674#: macrorecording features
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/frmitems.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/svx/source/items/frmitems.cxx b/svx/source/items/frmitems.cxx
index 047e2a9a7a0e..a08020f08aeb 100644
--- a/svx/source/items/frmitems.cxx
+++ b/svx/source/items/frmitems.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: frmitems.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: mba $ $Date: 2002-06-19 17:15:55 $
+ * last change: $Author: mba $ $Date: 2002-06-27 08:22:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1427,7 +1427,19 @@ sal_Bool SvxShadowItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
sal_Bool bRet = QueryValue( aAny, bConvert ? CONVERT_TWIPS : 0 ) && ( aAny >>= aShadow );
switch ( nMemberId )
{
- case MID_LOCATION: rVal >>= aShadow.Location; break;
+ case MID_LOCATION:
+ {
+ bRet = (rVal >>= aShadow.Location);
+ if ( !bRet )
+ {
+ sal_Int16 nVal;
+ bRet = (rVal >>= nVal);
+ aShadow.Location = (table::ShadowLocation) nVal;
+ }
+
+ break;
+ }
+
case MID_WIDTH: rVal >>= aShadow.ShadowWidth; break;
case MID_TRANSPARENT: rVal >>= aShadow.IsTransparent; break;
case MID_BG_COLOR: rVal >>= aShadow.Color; break;