Skip to content
Snippets Groups Projects
Commit 50e2a2c3 authored by Sacha Percot-Tétu's avatar Sacha Percot-Tétu
Browse files

Added the missing image list in operation call

parent d24da62a
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,14 @@ void OperationService::operation() {
image = curStdImgWnd->getImage();
}
if(_operation->needCurrentImg() && image == NULL) return;
vector<QWidget*> result = _operation->operator()(image, vector<const Image*>());
map<string,const Image*> imgList;
vector<StandardImageWindow*> windows = ws->getImageWindows();
for(vector<StandardImageWindow*>::iterator it = windows.begin(); it < windows.end(); ++it) {
imgList.insert(pair<string,const Image*>((*it)->windowTitle().toStdString(), (*it)->getImage()));
}
vector<QWidget*> result = _operation->operator()(image, imgList);
for(vector<QWidget*>::iterator it = result.begin(); it < result.end(); ++it) {
QWidget* widget = *it;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment