Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Bug #17083 Out of bounds exception at _storePanes() method
Submitted: 2010-02-09 20:29 UTC
From: darizotas Assigned:
Status: Feedback Package: Spreadsheet_Excel_Writer (version 0.9.2)
PHP Version: 5.2.5 OS: Windows 2003 Server
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 - 9 = ?

 
 [2010-02-09 20:29 UTC] darizotas (Dario Borreguero)
Description: ------------ According to the documentation panes can be freezed just calling freezePanes method with an array containing just two elements (Vertical split position, Horizontal split position). But doing this, raises an error at _storePanes method while generating the excel sheet, because it doesn't check the array length to initialize the variables ($rwTop, $colLeft). I should modify the following lines at "Worksheet.php" file as described below: [2492] $rwTop = (count($panes) > 2)? $panes[2] : null; [2493] $colLeft = (count($panes) > 3)? $panes[3] : null; I hope this helps.

Comments

 [2012-01-26 09:29 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
Can you provide a reproduce script and a pull request for your changes please?
 [2012-01-26 09:30 UTC] doconnor (Daniel O'Connor)
Also, is this a dupe of Bug #7315