kopia lustrzana https://gitlab.com/sane-project/backends
hp5400: small enhancement from review to reduce code and increase clarity.
rodzic
4948130f7c
commit
4f6b7665a8
|
@ -812,11 +812,7 @@ sane_control_option (SANE_Handle h, SANE_Int n, SANE_Action Action,
|
|||
{
|
||||
for (SANE_Int resIdx = 1; resIdx <= setResolutions[0]; resIdx++)
|
||||
{
|
||||
if (dpiValue == setResolutions[resIdx])
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (dpiValue < setResolutions[resIdx])
|
||||
if (dpiValue <= setResolutions[resIdx])
|
||||
{
|
||||
dpiValue = setResolutions[resIdx];
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue