Skip to content

Commit b1bf6ad

Browse files
committed
Allow 0 input value
1 parent d384490 commit b1bf6ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/minideen.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ struct MiniDeen : Filter {
8989

9090
int radius_tmp = -1;
9191
in->Read("radius", radius_tmp);
92-
if (radius_tmp > 0)
92+
if (radius_tmp >= 0)
9393
radius[0] = radius[1] = radius[2] = radius_tmp;
9494

9595
radius_tmp = -1;
9696
in->Read("radiusY", radius[0]);
9797
in->Read("radiusUV", radius_tmp);
98-
if (radius_tmp > 0)
98+
if (radius_tmp >= 0)
9999
radius[1] = radius[2] = radius_tmp;
100100

101101
int threshold_tmp = -1;
102102
in->Read("thrY", threshold[0]);
103103
in->Read("thrUV", threshold_tmp);
104-
if (threshold_tmp > 0)
104+
if (threshold_tmp >= 0)
105105
threshold[1] = threshold[2] = threshold_tmp;
106106
}
107107
in->Read("opt", opt);

0 commit comments

Comments
 (0)