解决勾选色调曲线,但不打开窗口,出图异常的问题

This commit is contained in:
yangjiaxuan 2023-11-08 14:52:12 +08:00
parent 8cebf0d586
commit 142e957507
1 changed files with 4 additions and 0 deletions

View File

@ -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;