mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-28 03:41:11 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user