Skip to content

TextMath object drops child elements when clone #1033

@wreulicke

Description

@wreulicke

Description

TextMath object drops child elements when clone.
I am not sure that this problem occurs in the case of other elements.

Information

  • .NET Target: (ie .NET Framework, .NET Core, UWP, Xamarin, etc)
    • .Net Core 5.0.400
  • DocumentFormat.OpenXml Version: 2.13.1

Repro

DocumentFormat.OpenXml.Office2010.Drawing.TextMath original = ...;
DocumentFormat.OpenXml.Office2010.Drawing.TextMath clone = original.CloneNode(true);

Console.WriteLine(original.OuterXml) ;
// output:
//  <a14:m xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">
//    <m:oMathPara xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math">
//    ...
//  </a14m>
Console.WriteLine(clone.OuterXml) ;
// output:
//  <a14:m xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" />

Observed

TextMath drops child elements when clone slide object.

Expected

TextMath has child elements

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions