Browse Source

fix #1498

pull/1578/head
Tony Qu 2 months ago
parent
commit
14d68fcc97
  1. 10
      OpenXmlFormats/Drawing/BaseTypes.cs
  2. 2
      OpenXmlFormats/Drawing/SpreadsheetDrawing.cs
  3. 2
      OpenXmlFormats/Drawing/WordprocessingDrawing.cs

10
OpenXmlFormats/Drawing/BaseTypes.cs

@ -270,11 +270,7 @@ namespace NPOI.OpenXmlFormats.Dml
internal void Write(StreamWriter sw, string nodeName)
{
if (name == null)
sw.Write(string.Format("<a:{0}", nodeName));
else
sw.Write(string.Format("<{0}", name));
sw.Write(string.Format("<{0}", nodeName));
XmlHelper.WriteAttribute(sw, "x", this.x, true);
XmlHelper.WriteAttribute(sw, "y", this.y, true);
sw.Write("/>");
@ -2353,11 +2349,11 @@ namespace NPOI.OpenXmlFormats.Dml
XmlHelper.WriteAttribute(sw, "flipV", this.flipV,false);
sw.Write(">");
if (this.off != null)
this.off.Write(sw, "off");
this.off.Write(sw, "a:off");
if (this.ext != null)
this.ext.Write(sw, "a:ext");
if (this.chOff != null)
this.chOff.Write(sw, "chOff");
this.chOff.Write(sw, "a:chOff");
if (this.chExt != null)
this.chExt.Write(sw, "a:chExt");
sw.Write(string.Format("</a:{0}>", nodeName));

2
OpenXmlFormats/Drawing/SpreadsheetDrawing.cs

@ -1703,7 +1703,7 @@ namespace NPOI.OpenXmlFormats.Dml.Spreadsheet
{
sw.Write("<xdr:absCellAnchor>");
if (this.pos!=null)
this.pos.Write(sw, "pos");
this.pos.Write(sw, "p:pos");
if (this.sp != null)
sp.Write(sw, "sp");
else if (this.connector != null)

2
OpenXmlFormats/Drawing/WordprocessingDrawing.cs

@ -1281,7 +1281,7 @@ namespace NPOI.OpenXmlFormats.Dml.WordProcessing
XmlHelper.WriteAttribute(sw, "wp14:editId", this.editIdField);
sw.Write(">");
if (this.simplePos != null)
this.simplePos.Write(sw, "simplePos");
this.simplePos.Write(sw, "wp:simplePos");
if (this.positionH != null)
this.positionH.Write(sw, "positionH");
if (this.positionV != null)

Loading…
Cancel
Save