Skip to content

Commit

Permalink
Generated content was added twice sometimes (Fixes issue 299)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien.menager committed Jun 23, 2011
1 parent d234a31 commit 420c90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dompdf/include/frame_reflower.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ protected function _set_content(){
$frame = $this->_frame;
$style = $frame->get_style();

if ( $style->content && $frame->get_node()->nodeName === "dompdf_generated" ) {
if ( $style->content && !$frame->get_first_child() && $frame->get_node()->nodeName === "dompdf_generated" ) {
$content = $this->_parse_content();
$node = $frame->get_node()->ownerDocument->createTextNode($content);

Expand Down

0 comments on commit 420c90d

Please sign in to comment.