Skip to content

Commit 48a88f9

Browse files
author
Roman Syroeshko
committed
Fixed build.
1 parent 4238154 commit 48a88f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ protected function getHeaderName($index)
442442
*/
443443
protected function findRowStart($offset)
444444
{
445-
$rowStart = strrpos($this->temporaryDocumentMainPart, '<w:tr ', ((strlen($this->temporaryDocumentMainPart) - $offset) * -1));
445+
$rowStart = strrpos($this->tempDocumentMainPart, '<w:tr ', ((strlen($this->tempDocumentMainPart) - $offset) * -1));
446446

447447
if (!$rowStart) {
448-
$rowStart = strrpos($this->temporaryDocumentMainPart, '<w:tr>', ((strlen($this->temporaryDocumentMainPart) - $offset) * -1));
448+
$rowStart = strrpos($this->tempDocumentMainPart, '<w:tr>', ((strlen($this->tempDocumentMainPart) - $offset) * -1));
449449
}
450450
if (!$rowStart) {
451451
throw new Exception('Can not find the start position of the row to clone.');
@@ -462,7 +462,7 @@ protected function findRowStart($offset)
462462
*/
463463
protected function findRowEnd($offset)
464464
{
465-
return strpos($this->temporaryDocumentMainPart, '</w:tr>', $offset) + 7;
465+
return strpos($this->tempDocumentMainPart, '</w:tr>', $offset) + 7;
466466
}
467467

468468
/**
@@ -475,9 +475,9 @@ protected function findRowEnd($offset)
475475
protected function getSlice($startPosition, $endPosition = 0)
476476
{
477477
if (!$endPosition) {
478-
$endPosition = strlen($this->temporaryDocumentMainPart);
478+
$endPosition = strlen($this->tempDocumentMainPart);
479479
}
480480

481-
return substr($this->temporaryDocumentMainPart, $startPosition, ($endPosition - $startPosition));
481+
return substr($this->tempDocumentMainPart, $startPosition, ($endPosition - $startPosition));
482482
}
483483
}

0 commit comments

Comments
 (0)