From 35896429497d7708824787b539862af0355aaaa9 Mon Sep 17 00:00:00 2001 From: Alexander Stehlik Date: Wed, 8 Oct 2014 15:51:01 +0200 Subject: [PATCH] [BUGFIX] Do not access protected renderer property The Renderer counter is not resetted if render mode is not latex. This prevents a PHP error when the protected _counter property is accessed. --- syntax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax.php b/syntax.php index 0c8551f..686967b 100644 --- a/syntax.php +++ b/syntax.php @@ -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]");