@@ -402,14 +402,13 @@ void EditorPanel::close () {
|
|||||||
delete previewHandler;
|
delete previewHandler;
|
||||||
previewHandler= NULL;
|
previewHandler= NULL;
|
||||||
|
|
||||||
rtengine::StagedImageProcessor::destroy (ipc);
|
|
||||||
ipc = NULL;
|
|
||||||
|
|
||||||
if(iarea)
|
if(iarea)
|
||||||
{
|
{
|
||||||
iarea->imageArea->setPreviewHandler (NULL);
|
iarea->imageArea->setPreviewHandler (NULL);
|
||||||
iarea->imageArea->setImProcCoordinator (NULL);
|
iarea->imageArea->setImProcCoordinator (NULL);
|
||||||
}
|
}
|
||||||
|
rtengine::StagedImageProcessor::destroy (ipc);
|
||||||
|
ipc = NULL;
|
||||||
navigator->previewWindow->setPreviewHandler (NULL);
|
navigator->previewWindow->setPreviewHandler (NULL);
|
||||||
// navigator->previewWindow->setImageArea (NULL);
|
// navigator->previewWindow->setImageArea (NULL);
|
||||||
|
|
||||||
|
@@ -76,8 +76,22 @@ void ImageArea::on_resized (Gtk::Allocation& req) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ImageArea::setImProcCoordinator (rtengine::StagedImageProcessor* ipc_) {
|
void ImageArea::setImProcCoordinator (rtengine::StagedImageProcessor* ipc_) {
|
||||||
|
if( !ipc_ ){
|
||||||
|
focusGrabber = NULL;
|
||||||
|
std::list<CropWindow*>::iterator i = cropWins.begin();
|
||||||
|
if( i!=cropWins.end() ){
|
||||||
|
(*i)->getPosition (lastClosedX, lastClosedY);
|
||||||
|
(*i)->getSize (lastClosedW, lastClosedH);
|
||||||
|
}
|
||||||
|
for( ;i!=cropWins.end();i++ ){
|
||||||
|
delete *i;
|
||||||
|
}
|
||||||
|
cropWins.clear();
|
||||||
|
|
||||||
|
mainCropWindow->setObservedCropWin (NULL);
|
||||||
|
}
|
||||||
ipc = ipc_;
|
ipc = ipc_;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImageArea::setPreviewHandler (PreviewHandler* ph) {
|
void ImageArea::setPreviewHandler (PreviewHandler* ph) {
|
||||||
|
Reference in New Issue
Block a user