Skip to content

Commit

Permalink
[BUGFIX] Do not access protected renderer property
Browse files Browse the repository at this point in the history
The Renderer counter is not resetted if render mode is not latex.
This prevents a PHP error when the protected _counter property is
accessed.
  • Loading branch information
astehlik committed Oct 8, 2014
1 parent 5820ff2 commit 3589642
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -1057,10 +1057,10 @@ function _tableCellContent(&$page, $col) {
* Rewrite of renderer->table_open () because of class
*/
function _tableOpen() {
$rdr = $this->rdr;
$rdr->_counter['row_counter'] = 0;


if($this->modeIsLatex) {
$rdr = $this->rdr;
$rdr->_counter['row_counter'] = 0;
$rdr->_current_tab_cols = 0;
if($rdr->info ['usetablefigure'] == "on") {
$this->_putCmdNl("begin{figure}[h]");
Expand Down

0 comments on commit 3589642

Please sign in to comment.