浏览代码

Fix height option check

DarthSim 6 年之前
父节点
当前提交
a03d74288f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      processing_options.go

+ 1 - 1
processing_options.go

@@ -296,7 +296,7 @@ func applyHeightOption(po *processingOptions, args []string) error {
 		return fmt.Errorf("Invalid height arguments: %v", args)
 	}
 
-	if h, err := strconv.Atoi(args[0]); err == nil && po.Height >= 0 {
+	if h, err := strconv.Atoi(args[0]); err == nil && h >= 0 {
 		po.Height = h
 	} else {
 		return fmt.Errorf("Invalid height: %s", args[0])