DarthSim 6 лет назад
Родитель
Сommit
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)
 		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
 		po.Height = h
 	} else {
 	} else {
 		return fmt.Errorf("Invalid height: %s", args[0])
 		return fmt.Errorf("Invalid height: %s", args[0])