diff layer/TextLayer.cpp @ 1470:696e569ff21b by-id

Further layer updates for ById
author Chris Cannam
date Fri, 28 Jun 2019 17:37:22 +0100
parents e2b6a13a1f69
children f2525e6cbdf1
line wrap: on
line diff
--- a/layer/TextLayer.cpp	Thu Jun 27 13:16:25 2019 +0100
+++ b/layer/TextLayer.cpp	Fri Jun 28 17:37:22 2019 +0100
@@ -43,8 +43,16 @@
     
 }
 
+int
+TextLayer::getCompletion(LayerGeometryProvider *) const
+{
+    auto model = ModelById::get(m_model);
+    if (model) return model->getCompletion();
+    else return 0;
+}
+
 void
-TextLayer::setModel(TextModel *model)
+TextLayer::setModel(ModelId model)
 {
     if (m_model == model) return;
     m_model = model;