Mercurial > hg > svgui
comparison view/Pane.cpp @ 1490:c83504eb2649
Attempt a mechanism for the View to time-align a layer on display using an aligning version of the ViewProxy
author | Chris Cannam |
---|---|
date | Fri, 02 Aug 2019 16:44:32 +0100 |
parents | e540aa5d89cd |
children | 175770a13495 |
comparison
equal
deleted
inserted
replaced
1489:b402121d8f5f | 1490:c83504eb2649 |
---|---|
386 workModelId = modelId; | 386 workModelId = modelId; |
387 } else { | 387 } else { |
388 if (ModelById::isa<WaveFileModel>(modelId)) { | 388 if (ModelById::isa<WaveFileModel>(modelId)) { |
389 workModelId = modelId; | 389 workModelId = modelId; |
390 } else { | 390 } else { |
391 auto model = ModelById::get(modelId); | 391 ModelId sourceId = (*vi)->getSourceModel(); |
392 if (model) { | 392 if (ModelById::isa<WaveFileModel>(sourceId)) { |
393 ModelId sourceId = model->getSourceModel(); | 393 workModelId = sourceId; |
394 if (ModelById::isa<WaveFileModel>(sourceId)) { | |
395 workModelId = sourceId; | |
396 } | |
397 } | 394 } |
398 } | 395 } |
399 } | 396 } |
400 } | 397 } |
401 | 398 |