解决勾选色调曲线,但不打开窗口,出图异常的问题
This commit is contained in:
parent
8cebf0d586
commit
142e957507
|
@ -1525,6 +1525,10 @@ int hg_scanner::setting_restore(void* data, long* len)
|
||||||
restore(v.first.c_str());
|
restore(v.first.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
memset(custom_gamma_val_, 0, sizeof(SANE_Gamma));
|
||||||
|
for (int i = 0; i < ARRAY_SIZE(custom_gamma_val_->table); ++i)
|
||||||
|
custom_gamma_val_->table[i] = i & 0x0ff;
|
||||||
|
|
||||||
notify_setting_result_ = true;
|
notify_setting_result_ = true;
|
||||||
|
|
||||||
return SCANNER_ERR_CONFIGURATION_CHANGED;
|
return SCANNER_ERR_CONFIGURATION_CHANGED;
|
||||||
|
|
Loading…
Reference in New Issue