App: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
019a25ad75
commit
7accf81bbe
@@ -797,7 +797,7 @@ void Document::onChanged(const Property* prop)
|
||||
}
|
||||
else if (prop == &UseHasher) {
|
||||
for (auto obj : d->objectArray) {
|
||||
auto geofeature = dynamic_cast<GeoFeature*>(obj);
|
||||
auto geofeature = freecad_cast<GeoFeature*>(obj);
|
||||
if (geofeature && geofeature->getPropertyOfGeometry()) {
|
||||
geofeature->enforceRecompute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user