Mercurial > hg > svgui
diff layer/RegionLayer.cpp @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | 5b9692768beb |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/RegionLayer.cpp Thu Jun 27 13:16:25 2019 +0100 +++ b/layer/RegionLayer.cpp Fri Jun 28 17:37:22 2019 +0100 @@ -63,6 +63,14 @@ } +int +RegionLayer::getCompletion(LayerGeometryProvider *) const +{ + auto model = ModelById::get(m_model); + if (model) return model->getCompletion(); + else return 0; +} + void RegionLayer::setModel(RegionModel *model) {