-
Notifications
You must be signed in to change notification settings - Fork 571
Open
Labels
Description
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