Fix two issues reported by coverity
This commit is contained in:
@@ -183,6 +183,7 @@ float estimate_ambient_light(const array2D<float> &R, const array2D<float> &G, c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
n = std::max(n, 1);
|
||||||
ambient[0] = rr / n;
|
ambient[0] = rr / n;
|
||||||
ambient[1] = gg / n;
|
ambient[1] = gg / n;
|
||||||
ambient[2] = bb / n;
|
ambient[2] = bb / n;
|
||||||
|
@@ -66,7 +66,6 @@ private:
|
|||||||
sigc::connection delayconn;
|
sigc::connection delayconn;
|
||||||
static const int inset = 2;
|
static const int inset = 2;
|
||||||
|
|
||||||
bool grid_visible;
|
|
||||||
bool low_enabled;
|
bool low_enabled;
|
||||||
|
|
||||||
bool notifyListener();
|
bool notifyListener();
|
||||||
|
Reference in New Issue
Block a user