comparison layer/LayerFactory.cpp @ 349:369a197737c7

* Various fixes to object lifetime management, particularly in the spectrum layer and for notification of main model deletion. The main purpose of this is to improve the behaviour of the spectrum, but I think it may also help with #1840922 Various crashes in Layer Summary window.
author Chris Cannam
date Wed, 23 Jan 2008 15:43:27 +0000
parents 4a542ba875c2
children d58701996fae
comparison
equal deleted inserted replaced
348:0093f351641c 349:369a197737c7
346 dynamic_cast<WaveformLayer *>(layer)->setChannel(channel); 346 dynamic_cast<WaveformLayer *>(layer)->setChannel(channel);
347 return; 347 return;
348 } 348 }
349 if (dynamic_cast<SpectrogramLayer *>(layer)) { 349 if (dynamic_cast<SpectrogramLayer *>(layer)) {
350 dynamic_cast<SpectrogramLayer *>(layer)->setChannel(channel); 350 dynamic_cast<SpectrogramLayer *>(layer)->setChannel(channel);
351 return;
352 }
353 if (dynamic_cast<SpectrumLayer *>(layer)) {
354 dynamic_cast<SpectrumLayer *>(layer)->setChannel(channel);
351 return; 355 return;
352 } 356 }
353 } 357 }
354 358
355 Layer * 359 Layer *