mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-26 06:06:17 +08:00
optimize(drawing): use implicit a:graphicFrameLocks
This commit is contained in:
@@ -63,6 +63,7 @@ func (p *Paragraph) AddInlineDrawing(pic []byte) (*Run, error) {
|
||||
},
|
||||
CNvGraphicFramePr: &WPCNvGraphicFramePr{
|
||||
Locks: AGraphicFrameLocks{
|
||||
XMLA: XMLNS_DRAWINGML_MAIN,
|
||||
NoChangeAspect: 1,
|
||||
},
|
||||
},
|
||||
@@ -174,6 +175,7 @@ func (p *Paragraph) AddAnchorDrawing(pic []byte) (*Run, error) {
|
||||
},
|
||||
CNvGraphicFramePr: &WPCNvGraphicFramePr{
|
||||
Locks: AGraphicFrameLocks{
|
||||
XMLA: XMLNS_DRAWINGML_MAIN,
|
||||
NoChangeAspect: 1,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user