summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/toolpanel/ScrollPanel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/toolpanel/ScrollPanel.cxx b/sd/source/ui/toolpanel/ScrollPanel.cxx
index 0a84e751f44a..7c43aa473698 100644
--- a/sd/source/ui/toolpanel/ScrollPanel.cxx
+++ b/sd/source/ui/toolpanel/ScrollPanel.cxx
@@ -97,7 +97,7 @@ ScrollPanel::~ScrollPanel (void)
TreeNode* pControl = pNode;
// When the node has been created as TitledControl then use its
// control instead of pNode directly.
- TitledControl* pTitledControl = static_cast<TitledControl*>(pNode);
+ TitledControl* pTitledControl = dynamic_cast<TitledControl*>(pNode);
if (pTitledControl != NULL)
pControl = pTitledControl->GetControl();