void MeasurementObjectImp::georeferenceModified(Subject &subject, const std::string &signal, const boost::any &v) { updateGeo(); generateGeoStrings(); Layer* pLayer = getLayer(); if (pLayer != NULL) { SpatialDataView* pView = dynamic_cast<SpatialDataView*>(pLayer->getView()); if (pView != NULL) { pView->clearUndo(); } } }