Added default style for rectangle and circle

This commit is contained in:
Chouchen 2011-01-28 16:09:52 +00:00
parent 0c287c4c70
commit 91409d62a4
1 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ class SVGTOIMAGE{
$colorStroke = $this->_allocateColor((string)$stroke);
$colorFill = $this->_allocateColor((string)$fill);
if($fill != ''){
if($fill != '' || ($fill=='' && $stroke=='')){
imagefilledarc($this->_image , $x , $y , $r*2 , $r*2 ,0,359.9, $colorFill, IMG_ARC_PIE );
//imageellipse ($this->_image , $x , $y , $r*2 , $r*2, $colorStroke );
}
@ -679,7 +679,7 @@ class SVGTOIMAGE{
if($this->_debug && !$thickness) $this->_log->error('Erreur dans la mise en place de l\'épaisseur du trait');
if($this->_debug) $this->_log->message('Rectangle - x : '.$x.' - y : '.$y.' - width : '.$width.' - height : '.$height.' - fill : '.$colorFill[0].'-'.$colorFill[1].'-'.$colorFill[2].' - stroke : '.$colorStroke[0].'-'.$colorStroke[1].'-'.$colorStroke[2]);
if($fill != ''){
if($fill != '' || ($fill=='' && $stroke=='')){
imagefilledrectangle ($this->_image , $x , $y , $x+$width , $y+$height, $colorFill );
}
if($stroke != ''){