summaryrefslogtreecommitdiff
path: root/forms/source
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-09-13 07:31:08 +0000
committerFrank Schönheit <fs@openoffice.org>2002-09-13 07:31:08 +0000
commit2e9e1ee86f2c8603f61acfb8e70ba38f6222eeaf (patch)
treee825d719f5b5576a7dd539f396a1bbcc9f56ccd6 /forms/source
parent9ef164ae76edc1f2e3b57555b721c2493399974b (diff)
#103242# when setting master-detail driven parameters, care for exceptions
Diffstat (limited to 'forms/source')
-rw-r--r--forms/source/component/DatabaseForm.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index d190410d1de3..499331e5da79 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DatabaseForm.cxx,v $
*
- * $Revision: 1.47 $
+ * $Revision: 1.48 $
*
- * last change: $Author: oj $ $Date: 2002-08-13 11:10:21 $
+ * last change: $Author: fs $ $Date: 2002-09-13 08:31:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1763,7 +1763,16 @@ bool ODatabaseForm::fillParameters(ReusableMutexGuard& _rClearForNotifies, const
// and fill the param value
aValue = xMasterField->getPropertyValue(PROPERTY_VALUE);
// parameters are based at 1
- xExecutionParams->setObjectWithInfo(aFind->second + 1, aValue, getINT32(aParamType), nScale);
+ try
+ {
+ xExecutionParams->setObjectWithInfo(aFind->second + 1, aValue, getINT32(aParamType), nScale);
+ }
+ catch( const Exception& )
+ {
+ OSL_ENSURE( sal_False,
+ ::rtl::OString( "ODatabaseForm::fillParameters: master-detail parameter number " )
+ += ::rtl::OString::valueOf( sal_Int32(aFind->second + 1) ));
+ }
++aFind;
}
while ( aFind != m_pParameterInfo->aParamMapping.end() );