Mercurial > hg > svgui
comparison view/Overview.cpp @ 1475:84c4ddb38415 by-id
Further layer updates
author | Chris Cannam |
---|---|
date | Tue, 02 Jul 2019 15:29:17 +0100 |
parents | b39cd8fb309f |
children | e540aa5d89cd |
comparison
equal
deleted
inserted
replaced
1474:36ad3cdabf55 | 1475:84c4ddb38415 |
---|---|
58 | 58 |
59 if (!zoomChanged) { | 59 if (!zoomChanged) { |
60 if (m_modelTestTime.elapsed() < 1000) { | 60 if (m_modelTestTime.elapsed() < 1000) { |
61 for (LayerList::const_iterator i = m_layerStack.begin(); | 61 for (LayerList::const_iterator i = m_layerStack.begin(); |
62 i != m_layerStack.end(); ++i) { | 62 i != m_layerStack.end(); ++i) { |
63 if ((*i)->getModel() && | 63 auto model = ModelById::get((*i)->getModel()); |
64 (!(*i)->getModel()->isOK() || | 64 if (model && (!model->isOK() || !model->isReady())) { |
65 !(*i)->getModel()->isReady())) { | |
66 return; | 65 return; |
67 } | 66 } |
68 } | 67 } |
69 } else { | 68 } else { |
70 m_modelTestTime.restart(); | 69 m_modelTestTime.restart(); |