Merge branch 'dev' into hidpi-icons

This commit is contained in:
Hombre
2019-01-24 22:02:44 +01:00
76 changed files with 1250 additions and 1262 deletions

View File

@@ -1523,28 +1523,27 @@ void MyDiagonalCurve::updateBackgroundHistogram (LUTu & hist)
mcih->pending++;
const auto func = [](gpointer data) -> gboolean {
MyCurveIdleHelper* const mcih = static_cast<MyCurveIdleHelper*>(data);
idle_register.add(
[this]() -> bool
{
if (mcih->destroyed) {
if (mcih->pending == 1) {
delete mcih;
} else {
--mcih->pending;
}
if (mcih->destroyed) {
if (mcih->pending == 1) {
delete mcih;
} else {
mcih->pending--;
return false;
}
return 0;
mcih->clearPixmap();
mcih->myCurve->queue_draw();
--mcih->pending;
return false;
}
mcih->clearPixmap ();
mcih->myCurve->queue_draw ();
mcih->pending--;
return FALSE;
};
idle_register.add(func, mcih);
);
}
void MyDiagonalCurve::reset(const std::vector<double> &resetCurve, double identityValue)