summaryrefslogtreecommitdiff
path: root/drawing.go
diff options
context:
space:
mode:
authorNaturalGao <43291304+NaturalGao@users.noreply.github.com>2022-08-19 23:24:13 +0800
committerGitHub <noreply@github.com>2022-08-19 23:24:13 +0800
commit76f336809f5419343702de5b3284d46feb9ed266 (patch)
tree207546e0abb538b3fb6d646b046b4c919e4c5711 /drawing.go
parentd1e76fc432ac5c9bde99591ec5e88e46b62d9c3d (diff)
This closes #849, add new function `DeleteComment` for delete comment (#1317)
- Update unit tests for the delete comment - Add 3 errors function for error messages
Diffstat (limited to 'drawing.go')
-rw-r--r--drawing.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/drawing.go b/drawing.go
index 10f4cd0..5015d26 100644
--- a/drawing.go
+++ b/drawing.go
@@ -14,7 +14,6 @@ package excelize
import (
"bytes"
"encoding/xml"
- "fmt"
"io"
"log"
"reflect"
@@ -1322,7 +1321,7 @@ func (f *File) deleteDrawing(col, row int, drawingXML, drawingType string) (err
deTwoCellAnchor = new(decodeTwoCellAnchor)
if err = f.xmlNewDecoder(strings.NewReader("<decodeTwoCellAnchor>" + wsDr.TwoCellAnchor[idx].GraphicFrame + "</decodeTwoCellAnchor>")).
Decode(deTwoCellAnchor); err != nil && err != io.EOF {
- err = fmt.Errorf("xml decode error: %s", err)
+ err = newDecodeXMLError(err)
return
}
if err = nil; deTwoCellAnchor.From != nil && decodeTwoCellAnchorFuncs[drawingType](deTwoCellAnchor) {