Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

「STEP6」のimgconv.go内のparseBounds(string)関数でerrを上書きしている箇所がある #21

Open
krxross opened this issue Oct 31, 2016 · 0 comments

Comments

@krxross
Copy link

krxross commented Oct 31, 2016

parseRelSizeの戻り値のerrを受取っているので、ErrInvalidSizeを代入すると
戻り値のerrが消えてしまう。
sz.X, err = parseRelSize(img.Bounds().Max.X, sp[0])
if err != nil {
err = ErrInvalidSize
return
}
因みに、sz.Yは、parseRelSizeの戻り値のerrをそのまま使用しています。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant