#3054 Use dynamic cast in defineEditorAttribute

This commit is contained in:
Magne Sjaastad
2018-06-18 10:38:08 +02:00
parent d5ec3b1db3
commit 20d45abae2
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ void RimFractureExportSettings::defineEditorAttribute(const caf::PdmFieldHandle*
{
if (field == &fileName)
{
caf::PdmUiFilePathEditorAttribute* myAttr = static_cast<caf::PdmUiFilePathEditorAttribute*>(attribute);
caf::PdmUiFilePathEditorAttribute* myAttr = dynamic_cast<caf::PdmUiFilePathEditorAttribute*>(attribute);
if (myAttr)
{
myAttr->m_selectSaveFileName = true;