summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-11-08 10:24:52 +0000
committerFrank Schönheit <fs@openoffice.org>2001-11-08 10:24:52 +0000
commit4f5fc6e7eaf0060f40bd267e5a6922dea7c8a272 (patch)
treefe7868227545b0364728ba742275b79705201163 /forms
parente4dbbb5324d748a720f64ed0a38d40a94ce405da (diff)
#94455# don't allow negative row heights
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Grid.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx
index cb75c0a92398..63dd597fabbb 100644
--- a/forms/source/component/Grid.cxx
+++ b/forms/source/component/Grid.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Grid.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: hr $ $Date: 2001-10-25 17:55:17 $
+ * last change: $Author: fs $ $Date: 2001-11-08 11:24:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -658,7 +658,16 @@ sal_Bool OGridControlModel::convertFastPropertyValue( Any& rConvertedValue, Any&
}
break;
case PROPERTY_ID_ROWHEIGHT:
- bModified = tryPropertyValue(rConvertedValue, rOldValue, rValue, m_aRowHeight, ::getCppuType((const sal_Int32*)NULL));
+ {
+ bModified = tryPropertyValue(rConvertedValue, rOldValue, rValue, m_aRowHeight, ::getCppuType((const sal_Int32*)NULL));
+
+ sal_Int32 nNewVal( 0 );
+ if ( ( rConvertedValue >>= nNewVal ) && ( nNewVal <= 0 ) )
+ {
+ rConvertedValue.clear();
+ bModified = m_aRowHeight.hasValue();
+ }
+ }
break;
case PROPERTY_ID_FONT_NAME:
bModified = tryPropertyValue(rConvertedValue, rOldValue, rValue, m_aFont.Name);