diff --git a/Clippit/PowerPoint/FluentPresentationBuilder.cs b/Clippit/PowerPoint/FluentPresentationBuilder.cs index 37dde975..e76979b8 100644 --- a/Clippit/PowerPoint/FluentPresentationBuilder.cs +++ b/Clippit/PowerPoint/FluentPresentationBuilder.cs @@ -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) diff --git a/Clippit/PowerPoint/PresentationBuilderTools.cs b/Clippit/PowerPoint/PresentationBuilderTools.cs index 9c7e9dda..d7411910 100644 --- a/Clippit/PowerPoint/PresentationBuilderTools.cs +++ b/Clippit/PowerPoint/PresentationBuilderTools.cs @@ -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);