diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-12 16:12:02 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-12 16:34:48 +0100 |
commit | b46be146a4e18cfef197e236084202b6281c8191 (patch) | |
tree | 18adda1f09502a2852cbe9559e092dff6b382b4e /dbaccess | |
parent | argument has no effect anymore -> remove (diff) | |
download | core-b46be146a4e18cfef197e236084202b6281c8191.tar.gz core-b46be146a4e18cfef197e236084202b6281c8191.zip |
be more cautious in debug mode
Change-Id: I46b89b10287ac755e2b727b46d6fdd19f44bcdd3
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/RelationControl.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index 47c0155d016f..771e1b20eef8 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -437,7 +437,13 @@ namespace dbaui DBG_CHKTHIS(ORelationControl,NULL); EditBrowseBox::CellModified(); SaveModified(); - static_cast<OTableListBoxControl*>(GetParent())->NotifyCellChange(); +#if OSL_DEBUG_LEVEL > 0 + OTableListBoxControl *parent = dynamic_cast<OTableListBoxControl*>(GetParent()); +#else + OTableListBoxControl *parent = static_cast<OTableListBoxControl*>(GetParent()); +#endif + assert(parent); + parent->NotifyCellChange(); } //======================================================================== // class OTableListBoxControl |