diff options
| author | faiface <faiface@ksp.sk> | 2017-08-19 17:04:36 +0200 |
|---|---|---|
| committer | faiface <faiface@ksp.sk> | 2017-08-19 17:04:36 +0200 |
| commit | 50dc27def9ba15a35a8ebbcf8d66fda9aabc4bfd (patch) | |
| tree | 535b84f09dd52687c22069beab3d795f57d8f5fa | |
| parent | b8952df3651e2be2219545815ae880f71610d984 (diff) | |
| download | gui-50dc27def9ba15a35a8ebbcf8d66fda9aabc4bfd.zip | |
layer: fix panic error message
| -rw-r--r-- | layer/layer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layer/layer.go b/layer/layer.go index 75205ca..b95c746 100644 --- a/layer/layer.go +++ b/layer/layer.go @@ -41,7 +41,7 @@ func (l *List) Push() *Layer { func (l *List) Flush(r image.Rectangle) { if l.dst == nil { - panic(errors.New("layers: Flush: no destination")) + panic(errors.New("layer: Flush: no destination")) } draw.Draw(l.dst.Image(), r, image.Transparent, r.Min, draw.Src) for e := l.layers.Back(); e != nil; e = e.Prev() { |