1
0
Fork 0
mirror of https://github.com/wagesj45/butterflow-ui.git synced 2025-09-09 03:00:39 -05:00

Menu progress

This commit is contained in:
Jordan Wages 2018-07-04 19:46:33 -05:00
commit 0ffd5c401b
7 changed files with 142 additions and 20 deletions

View file

@ -312,6 +312,7 @@ namespace butterflow_ui
/// <summary> Gets or sets the size of the pixel neighborhood. </summary>
/// <value> The size of the pixel neighborhood. </value>
/// <remarks> Per butterflow's documentation, the valid range for --poly-n is {5,7}. </remarks>
public string PixelNeighborhood
{
get
@ -322,8 +323,7 @@ namespace butterflow_ui
{
interpreter.Interpret(value);
// Per butterflow's documentation, the valid range for --poly-n is {5,7}
if (interpreter.Int >= 5 || interpreter.Int <= 7)
if (interpreter.Int >= 5 && interpreter.Int <= 7)
{
this.pixelNeighborhood = interpreter.Int;
}