comparison layer/RegionLayer.cpp @ 1481:e540aa5d89cd by-id

Update for removal of (public) getId from Model
author Chris Cannam
date Fri, 05 Jul 2019 15:34:50 +0100
parents f2525e6cbdf1
children bd7fdc418f36
comparison
equal deleted inserted replaced
1480:232262e38051 1481:e540aa5d89cd
226 } else if (name == "Scale Units") { 226 } else if (name == "Scale Units") {
227 auto model = ModelById::getAs<RegionModel>(m_model); 227 auto model = ModelById::getAs<RegionModel>(m_model);
228 if (model) { 228 if (model) {
229 model->setScaleUnits 229 model->setScaleUnits
230 (UnitDatabase::getInstance()->getUnitById(value)); 230 (UnitDatabase::getInstance()->getUnitById(value));
231 emit modelChanged(); 231 emit modelChanged(m_model);
232 } 232 }
233 } else { 233 } else {
234 return SingleColourLayer::setProperty(name, value); 234 return SingleColourLayer::setProperty(name, value);
235 } 235 }
236 } 236 }