Commit 6b5dca61 authored by santiaago's avatar santiaago
Browse files

fix bug #37

parent 63108621
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ You can set the HTML source of the image to point directly to **tinygraphs.com**
    ![theme](http://tinygraphs.com/squares/random?theme=frogideas&size=120&fmt=svg&numcolors=4)

* **lines**
You can specify the number of lines that an isogrid can have using the `lines`parameter. **Default** parameter is **6**
You can specify the number of lines that an isogrid can have using the `lines`parameter. **Default** parameter is **6**. Value has to be greater or equal to 4.

`tinygraphs.com/isogrids/hello?lines=4`

+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ func Lines(r *http.Request) int {
	s := strings.ToLower(r.FormValue("lines"))
	if len(s) > 0 {
		if n, err := strconv.ParseInt(s, 0, 64); err == nil {
			if n > 0 {
			if n >= 4 {
				return int(n)
			}
		}