Skip to content

Commit

Permalink
Chart not supported by Deck Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
krystyna_hurieieva committed Apr 16, 2024
1 parent d2e6aad commit 6c5848c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Clippit/PowerPoint/FluentPresentationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,6 @@ private void CopyRelatedPartsForContentParts(OpenXmlPart oldContentPart, OpenXml
foreach (var chartReference in newContent.DescendantsAndSelf(C.chart))
{
var relId = (string)chartReference.Attribute(R.id);
if (newContentPart.HasRelationship(relId))
continue;

var oldPartIdPair2 = oldContentPart.Parts.FirstOrDefault(p => p.RelationshipId == relId);
if (oldPartIdPair2.OpenXmlPart is ChartPart oldPart)
Expand Down
2 changes: 0 additions & 2 deletions Clippit/PowerPoint/PresentationBuilderTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ internal static void AddRelationships(OpenXmlPart oldPart, OpenXmlPart newPart,
var newRid = Relationships.GetNewRelationshipId();
var oldHyperlink = oldPart.HyperlinkRelationships.FirstOrDefault(h => h.Id == relId);
if (oldHyperlink is null) {
//TODO Issue with reference to another part: var temp = oldPart.GetPartById(relId);
RemoveContent(newContent, e.Name, relId);
continue;
}
newPart.AddHyperlinkRelationship(oldHyperlink.Uri, oldHyperlink.IsExternal, newRid);
Expand Down

0 comments on commit 6c5848c

Please sign in to comment.