From 30e0451bc309c739b2a7cd79724778b62e27929e Mon Sep 17 00:00:00 2001 From: Synchro Date: Mon, 9 Nov 2015 13:57:06 +0100 Subject: [PATCH] Fix duplicate array keys in ptg indices Reference: http://read.pudn.com/downloads173/sourcecode/delphi_control/805790/DevExpress/DevExpressComm/cxExcelConst.pas__.htm --- src/PhpSpreadsheet/Writer/Excel5/Parser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PhpSpreadsheet/Writer/Excel5/Parser.php b/src/PhpSpreadsheet/Writer/Excel5/Parser.php index e7fec457..d86fb6af 100644 --- a/src/PhpSpreadsheet/Writer/Excel5/Parser.php +++ b/src/PhpSpreadsheet/Writer/Excel5/Parser.php @@ -194,13 +194,13 @@ class Parser 'ptgRefNV' => 0x4C, 'ptgAreaNV' => 0x4D, 'ptgMemAreaNV' => 0x4E, - 'ptgMemNoMemN' => 0x4F, + 'ptgMemNoMemNV'=> 0x4F, 'ptgFuncCEV' => 0x58, 'ptgNameXV' => 0x59, 'ptgRef3dV' => 0x5A, 'ptgArea3dV' => 0x5B, 'ptgRefErr3dV' => 0x5C, - 'ptgAreaErr3d' => 0x5D, + 'ptgAreaErr3dV'=> 0x5D, 'ptgArrayA' => 0x60, 'ptgFuncA' => 0x61, 'ptgFuncVarA' => 0x62, @@ -216,13 +216,13 @@ class Parser 'ptgRefNA' => 0x6C, 'ptgAreaNA' => 0x6D, 'ptgMemAreaNA' => 0x6E, - 'ptgMemNoMemN' => 0x6F, + 'ptgMemNoMemNA'=> 0x6F, 'ptgFuncCEA' => 0x78, 'ptgNameXA' => 0x79, 'ptgRef3dA' => 0x7A, 'ptgArea3dA' => 0x7B, 'ptgRefErr3dA' => 0x7C, - 'ptgAreaErr3d' => 0x7D, + 'ptgAreaErr3dA'=> 0x7D, ]; // Thanks to Michael Meeks and Gnumeric for the initial arg values.