Skip to content

Commit 174c949

Browse files
committed
fix(chart): update chart image rels properly; fixes #128
1 parent 866ec77 commit 174c949

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shapes/chart.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ export class Chart extends Shape implements IChart {
414414
this.updateTargetWorksheetRelation(
415415
targetRelFile,
416416
element,
417-
target,
418-
imageInfo,
417+
'Target',
418+
imageInfo.rel,
419419
);
420420
break;
421421
case this.relTypeChartThemeOverride:
@@ -451,6 +451,7 @@ export class Chart extends Shape implements IChart {
451451
const extension = path
452452
.extname(file)
453453
.replace('.', '') as ContentTypeExtension;
454+
454455
return {
455456
source: `ppt/media/${file}`,
456457
target: `ppt/media/${file}-chart-${this.targetNumber}.${extension}`,

0 commit comments

Comments
 (0)