dotnet / dotnet/Open-XML-SDK

`TextMath` object drops child elements when clone

Open
#1,033 4 comments 0 reactions 1 assignee Claimed by @tomjebo View on GitHub
bug
Dominant language
C#
Stars
4.6k
Forks
605
PR merge metrics
No merged PRs in 30d

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**

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

Console.WriteLine(original.OuterXml) ;
// output:
//
//
// ...
//
Console.WriteLine(clone.OuterXml) ;
// output:
//
```

**Observed**

TextMath drops child elements when clone slide object.

**Expected**

TextMath has child elements

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.