diff options
-rw-r--r-- | sd/source/ui/toolpanel/ScrollPanel.cxx | 2 |
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(); |