Commit 85c103ba52b93f9834871575362e9983637ffb65
1 parent
074c7ca1
Exists in
master
and in
7 other branches
Correção na geração de gráficos
Showing
1 changed file
with
6 additions
and
9 deletions
Show diff stats
classesphp/classe_shp.php
... | ... | @@ -290,16 +290,14 @@ Include: |
290 | 290 | //pega os valores |
291 | 291 | include_once($this->locaplic."/classesphp/classe_atributos.php"); |
292 | 292 | $m = new Atributos($this->arquivo,$this->tema); |
293 | + //FIXME alterar para a nova funcao de identificacao | |
293 | 294 | $shape = $m->identificaQBP($this->nome,$x,$y,$this->arquivo,0,"","shape"); |
294 | - if ((is_array($shape)) && ($shape[0] == " ")) | |
295 | - { | |
295 | + if ((is_array($shape)) && ($shape[0] == " ")){ | |
296 | 296 | return("erro.Nenhum valor encontrado"); |
297 | 297 | } |
298 | - else | |
299 | - { | |
298 | + else{ | |
300 | 299 | $itens = explode("*",$itens); |
301 | - foreach ($itens as $i) | |
302 | - { | |
300 | + foreach ($itens as $i){ | |
303 | 301 | $ii = explode(",",$i); |
304 | 302 | $v = $shape->values[$ii[0]]; |
305 | 303 | if (!is_numeric($v)) |
... | ... | @@ -309,8 +307,7 @@ Include: |
309 | 307 | } |
310 | 308 | $data = implode("*",$valor); |
311 | 309 | $cores = implode("*",$cor); |
312 | - if ($tipo == "pizza") | |
313 | - { | |
310 | + if ($tipo == "pizza"){ | |
314 | 311 | //gera a figura |
315 | 312 | include_once($this->locaplic."/classesphp/graficopizza.php"); |
316 | 313 | $res = graficopizza($data,$width,$inclinacao,$shadow_height,$cores,$this->arquivo,$temaedit); |
... | ... | @@ -318,7 +315,7 @@ Include: |
318 | 315 | } |
319 | 316 | //insere simbolo |
320 | 317 | $nomes = nomeRandomico(); |
321 | - $nId = ms_newsymbolobj($this->mapa, "foto"); | |
318 | + $nId = ms_newsymbolobj($this->mapa, $img[0]); | |
322 | 319 | $oSymbol = $this->mapa->getsymbolobjectbyid($nId); |
323 | 320 | $oSymbol->set("inmapfile", MS_TRUE); |
324 | 321 | $oSymbol->set("type",MS_SYMBOL_PIXMAP); | ... | ... |