Bugfix: Work item 17186 - setSelectedCellByColumnAndRow is not working

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86732 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker
2012-02-21 10:44:10 +00:00
parent 4e6807578e
commit 3543ea45ef
2 changed files with 25 additions and 5 deletions
@@ -271,15 +271,17 @@ class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_Writ
}
// Selection
if ($pane != '') {
// if ($pane != '') {
// Only need to write selection element if we have a split pane
// We cheat a little by over-riding the active cell selection, setting it to the split cell
$objWriter->startElement('selection');
$objWriter->writeAttribute('pane', $pane);
if ($pane != '') {
$objWriter->writeAttribute('pane', $pane);
}
$objWriter->writeAttribute('activeCell', $activeCell);
$objWriter->writeAttribute('sqref', $activeCell);
$objWriter->endElement();
}
// }
$objWriter->endElement();