Commit cef907d59c1fe0609f823f8464bfc065bba36a45

Authored by Edmar Moretti
1 parent da1bdde5

--no commit message

Showing 1 changed file with 11 additions and 4 deletions   Show diff stats
classesphp/classe_temas.php
... ... @@ -125,8 +125,9 @@ $ext - (opcional) extensão geográfica que será aplicada ao
125 125 else
126 126 include_once("funcoes_gerais.php");
127 127 $this->v = versao();
  128 + $this->vi = $this->v["inteiro"];
128 129 $this->v = $this->v["principal"];
129   - $this->vi = $this->vi["inteiro"];
  130 +
130 131 $this->locaplic = $locaplic;
131 132 if($map_file != "")
132 133 {
... ... @@ -1104,7 +1105,8 @@ Adiciona LABEL em uma classe de um tema
1104 1105 */
1105 1106 function adicionaLabel($novac,$wrap,$fonte,$tamanho,$angulo,$fundo,$sombra,$cor,$outlinecolor,$shadowcolor,$shadowsizex,$shadowsizey,$force,$mindistance,$minfeaturesize,$offsetx,$offsety,$partials,$position){
1106 1107 if($this->vi >= 60200){
1107   - $label = $novac->getLabel(0);
  1108 + $indiceLabel = $novac->addLabel(new labelObj());
  1109 + $label = $novac->getLabel($indiceLabel);
1108 1110 }
1109 1111 else{
1110 1112 $label = $novac->label;
... ... @@ -1115,7 +1117,12 @@ Adiciona LABEL em uma classe de um tema
1115 1117 $s = "CLASS LABEL WRAP '$wrap' END END";
1116 1118 $novac->updateFromString($s);
1117 1119 }
1118   - $label = $novac->label;
  1120 + if($this->vi >= 60200){
  1121 + $label = $novac->getLabel($indiceLabel);
  1122 + }
  1123 + else{
  1124 + $label = $novac->label;
  1125 + }
1119 1126 if($fonte != "bitmap")
1120 1127 {
1121 1128 $label->set("type",MS_TRUETYPE);
... ... @@ -1163,4 +1170,4 @@ Adiciona LABEL em uma classe de um tema
1163 1170 {$this->layer->setMetaData("cache","");}
1164 1171 }
1165 1172 }
1166   -?>
1167 1173 \ No newline at end of file
  1174 +?>
... ...