Commit 07fa2edb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix unchecked dynamic_cast

CID:249029
parent 9be19555
......@@ -134,7 +134,7 @@ void KisDuplicateOpSettings::toXML(QDomDocument& doc, QDomElement& rootElt) cons
KisPaintOpSettingsSP KisDuplicateOpSettings::clone() const
{
KisPaintOpSettingsSP setting = KisBrushBasedPaintOpSettings::clone();
KisDuplicateOpSettings* s = dynamic_cast<KisDuplicateOpSettings*>(setting.data());
KisDuplicateOpSettings* s = static_cast<KisDuplicateOpSettings*>(setting.data());
s->m_offset = m_offset;
s->m_isOffsetNotUptodate = m_isOffsetNotUptodate;
s->m_position = m_position;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment