summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 11:21:50 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 11:21:50 +0000
commit772ba1fa21e51b6d20746155f88828dd4a3b126c (patch)
treebcc63ff32e718dbe1fe72759c14d0dc63e9a8289 /toolkit
parent8513034b46a342574ca9bb75173864b0430930dd (diff)
INTEGRATION: CWS awttree01 (1.49.8); FILE MERGED
2007/06/25 12:48:51 cl 1.49.8.4: RESYNC: (1.53-1.54); FILE MERGED 2007/03/11 14:42:10 cl 1.49.8.3: RESYNC: (1.52-1.53); FILE MERGED 2006/12/01 10:23:10 cl 1.49.8.2: RESYNC: (1.49-1.52); FILE MERGED 2006/12/01 06:19:32 cl 1.49.8.1: implement a tree control api
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index af3264a6bd6b..4f2e6c604e51 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unocontrolmodel.cxx,v $
*
- * $Revision: 1.54 $
+ * $Revision: 1.55 $
*
- * last change: $Author: kz $ $Date: 2007-06-20 10:26:37 $
+ * last change: $Author: hr $ $Date: 2007-06-27 12:21:50 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1384,7 +1384,10 @@ void UnoControlModel::setPropertyValue( const ::rtl::OUString& rPropertyName, co
nPropId = (sal_Int32) GetPropertyId( rPropertyName );
DBG_ASSERT( nPropId, "Invalid ID in UnoControlModel::setPropertyValue" );
}
- setFastPropertyValue( nPropId, rValue );
+ if( nPropId )
+ setFastPropertyValue( nPropId, rValue );
+ else
+ throw ::com::sun::star::beans::UnknownPropertyException();
}
// ::com::sun::star::beans::XFastPropertySet