File tree 2 files changed +15
-3
lines changed
src/PhpSpreadsheet/Reader
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ and this project adheres to [Semantic Versioning](https://semver.org).
48
48
49
49
### Fixed
50
50
51
- - PrintArea causes exception [ #1544 ] ( https://github.com/phpoffice/phpspreadsheet/pull/1544 )
51
+ - PrintArea causes exception [ #1544 ] ( https://github.com/phpoffice/phpspreadsheet/pull/1544 )
52
+ - Fix for notice during accessing "cached magnification factor" offset [ #1354 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/1354 )
52
53
53
54
## 1.14.1 - 2020-07-19
54
55
Original file line number Diff line number Diff line change @@ -4377,11 +4377,22 @@ private function readWindow2(): void
4377
4377
// offset: 10; size: 2; cached magnification factor in page break preview (in percent); 0 = Default (60%)
4378
4378
// offset: 12; size: 2; cached magnification factor in normal view (in percent); 0 = Default (100%)
4379
4379
// offset: 14; size: 4; not used
4380
- $ zoomscaleInPageBreakPreview = self ::getUInt2d ($ recordData , 10 );
4380
+ if (!isset ($ recordData [10 ])) {
4381
+ $ zoomscaleInPageBreakPreview = 0 ;
4382
+ } else {
4383
+ $ zoomscaleInPageBreakPreview = self ::getUInt2d ($ recordData , 10 );
4384
+ }
4385
+
4381
4386
if ($ zoomscaleInPageBreakPreview === 0 ) {
4382
4387
$ zoomscaleInPageBreakPreview = 60 ;
4383
4388
}
4384
- $ zoomscaleInNormalView = self ::getUInt2d ($ recordData , 12 );
4389
+
4390
+ if (!isset ($ recordData [12 ])) {
4391
+ $ zoomscaleInNormalView = 0 ;
4392
+ } else {
4393
+ $ zoomscaleInNormalView = self ::getUInt2d ($ recordData , 12 );
4394
+ }
4395
+
4385
4396
if ($ zoomscaleInNormalView === 0 ) {
4386
4397
$ zoomscaleInNormalView = 100 ;
4387
4398
}
You can’t perform that action at this time.
0 commit comments