diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-12-02 12:16:38 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-12-02 12:16:38 +0000 |
commit | 296c5a093268fd2e77dced820ac07e2fa0c822a2 (patch) | |
tree | 507dc4ab98732a810b3004a966f731dc775d7a49 /extensions/source | |
parent | ca797206479c13b6b119ef58c4a962608d96dc7f (diff) |
#105726# properly EnableEmptyFieldValue (broken in 1.44)
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/formcontroller.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 3102e607d809..202d621cb64a 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formcontroller.cxx,v $ * - * $Revision: 1.51 $ + * $Revision: 1.52 $ * - * last change: $Author: fs $ $Date: 2002-10-25 12:49:51 $ + * last change: $Author: fs $ $Date: 2002-12-02 13:16:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2074,9 +2074,10 @@ namespace pcr } // and allow empty values only for the default value and the value - ((OFormattedNumericControl*)pProperty->pControl)->EnableEmptyField(PROPERTY_ID_DEFAULT_VALUE == nPropId); - ((OFormattedNumericControl*)pProperty->pControl)->EnableEmptyField(PROPERTY_ID_VALUE == nPropId); - } + static_cast< OFormattedNumericControl* >( pProperty->pControl ) + ->EnableEmptyField( ( PROPERTY_ID_DEFAULT_VALUE == nPropId ) + || ( PROPERTY_ID_VALUE == nPropId ) ); +} else { if ( (nPropId== PROPERTY_ID_HEIGHT || nPropId== PROPERTY_ID_WIDTH || nPropId== PROPERTY_ID_ROWHEIGHT) @@ -2740,6 +2741,9 @@ namespace pcr /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.51 2002/10/25 12:49:51 fs + * #104512# fixed some controls leaking + * * Revision 1.50 2002/08/22 10:49:52 oj * #96105# set the modified flag at the model * |