Add 'ps' suffix to printer settings resources IDs (#1690)
* Add 'ps' suffix to printer settings resources IDs
This commit is contained in:
parent
2c927b1ca5
commit
9cd39b8f4f
|
@ -1971,7 +1971,7 @@ class Xlsx extends BaseReader
|
||||||
|
|
||||||
$unparsedPrinterSettings = &$unparsedLoadedData['sheets'][$docSheet->getCodeName()]['printerSettings'];
|
$unparsedPrinterSettings = &$unparsedLoadedData['sheets'][$docSheet->getCodeName()]['printerSettings'];
|
||||||
foreach ($sheetPrinterSettings as $rId => $printerSettings) {
|
foreach ($sheetPrinterSettings as $rId => $printerSettings) {
|
||||||
$rId = substr($rId, 3); // rIdXXX
|
$rId = substr($rId, 3) . 'ps'; // rIdXXX, add 'ps' suffix to avoid identical resource identifier collision with unparsed vmlDrawing
|
||||||
$unparsedPrinterSettings[$rId] = [];
|
$unparsedPrinterSettings[$rId] = [];
|
||||||
$unparsedPrinterSettings[$rId]['filePath'] = self::dirAdd("$dir/$fileWorksheet", $printerSettings['Target']);
|
$unparsedPrinterSettings[$rId]['filePath'] = self::dirAdd("$dir/$fileWorksheet", $printerSettings['Target']);
|
||||||
$unparsedPrinterSettings[$rId]['relFilePath'] = (string) $printerSettings['Target'];
|
$unparsedPrinterSettings[$rId]['relFilePath'] = (string) $printerSettings['Target'];
|
||||||
|
|
Loading…
Reference in New Issue