Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-19 00:57:29 +02:00
parent 8aff354df9
commit a9f769c5d7
3 changed files with 6 additions and 6 deletions

View File

@@ -1258,7 +1258,7 @@ SSEFUNCTION void ImProcFunctions::ip_wavelet(LabImage * lab, LabImage * dst, int
omp_set_nested(oldNested);
#endif
if(numtiles > 1) {
if(numtiles != 1) {
dst->CopyFrom(dsttmp);
delete dsttmp;
}

View File

@@ -60,9 +60,7 @@ FileBrowserEntry::FileBrowserEntry (Thumbnail* thm, const Glib::ustring& fname)
iconsLoaded = true;
}
if (thm) {
thm->addThumbnailListener (this);
}
thumbnail->addThumbnailListener (this);
}
FileBrowserEntry::~FileBrowserEntry ()

View File

@@ -1111,8 +1111,10 @@ bool MyDiagonalCurve::pipetteButton1Pressed(EditDataProvider *provider, int modi
curve.y.insert (ity, 0);
// the graph is refreshed only if a new point is created (snapped to a pixel)
curve.x.at(lit_point) = clampedX;
curve.y.at(lit_point) = clampedY;
if (lit_point >= 0) {
curve.x.at(lit_point) = clampedX;
curve.y.at(lit_point) = clampedY;
}
if (lit_point > -1 && grab_point == -1 && coordinateAdjuster->is_visible()) {
std::vector<double> position;