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:37:21 +0100
commit84bcb75ee0190c3199f03de1ac79cf016b2770bf (patch)
tree522116b65e5215ea9775e51ea94a2086c5f1ab24 /dbaccess
parent3e3dbd1411878e5f83e35567f1f62a1e2f3d7986 (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