summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-03-12 15:21:12 +0000
committerOliver Specht <os@openoffice.org>2001-03-12 15:21:12 +0000
commit4cfe671bea2349e60b0ea96cb6f493fa38cf8a67 (patch)
tree9685e80d4e552579940ad77ca4158b22922b0f10 /svx
parent4141dbfa7c30f3e0329bb4ccc577b52bbc85589d (diff)
CharReliefItem::PutValue: check value
Diffstat (limited to 'svx')
-rw-r--r--svx/source/items/textitem.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/items/textitem.cxx b/svx/source/items/textitem.cxx
index 616f9d0b6a37..67ff3e309492 100644
--- a/svx/source/items/textitem.cxx
+++ b/svx/source/items/textitem.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textitem.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: jp $ $Date: 2001-03-08 10:09:40 $
+ * last change: $Author: os $ $Date: 2001-03-12 16:21:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4338,9 +4338,12 @@ sal_Bool SvxCharReliefItem::PutValue( const com::sun::star::uno::Any& rVal,
{
case MID_RELIEF:
{
- sal_Int16 nVal;
+ sal_Int16 nVal = -1;
rVal >>= nVal;
- SetValue( (FontRelief)nVal );
+ if(nVal >= 0 && nVal <= RELIEF_ENGRAVED)
+ SetValue( (FontRelief)nVal );
+ else
+ bRet = sal_False;
}
break;
default: