summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-12-12 16:12:02 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-12-12 16:34:48 +0100
commitb46be146a4e18cfef197e236084202b6281c8191 (patch)
tree18adda1f09502a2852cbe9559e092dff6b382b4e /dbaccess
parent2ee4b892ef50825365a829697efb22679f7e7a28 (diff)
be more cautious in debug mode
Change-Id: I46b89b10287ac755e2b727b46d6fdd19f44bcdd3
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/RelationControl.cxx8
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