From 772ba1fa21e51b6d20746155f88828dd4a3b126c Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 27 Jun 2007 11:21:50 +0000 Subject: 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 --- toolkit/source/controls/unocontrolmodel.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'toolkit') 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 -- cgit