[mapserver-users] Small fix for labels in php_mapscript.c

Daniel Morissette morissette at dmsolutions.ca
Mon Jul 23 15:08:51 EDT 2001


Rob,

I have committed the change to CVS... thanks for pointing the error! :)

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.


Rob Martinson wrote:
> 
> I noticed a little problem when setting a few properties of the label
> object. Specifically, the following object properties were not available
> and returned an error "Property does not exist in this object":
> 
> "backgroundcolor"
> "backgroundshadowcolor"
> "backgroundshadowsizex"
> "backgroundshadowsizey"
> 
> Just a little missed typing in php_mapscript.c. Although the properties
> exist within the label object on creation, they were not being changed
> in php3_ms_label_setProperty.
> 
> Between lines 4508 and 4509 of the latest CVS version of php_mapscript.c
> I inserted:
> 
>     else IF_SET_LONG(  "backgroundcolor",         self->backgroundcolor)
>     else IF_SET_LONG(  "backgroundshadowcolor",
> self->backgroundshadowcolor)
>     else IF_SET_LONG(  "backgroundshadowsizex",
> self->backgroundshadowsizex)
>     else IF_SET_LONG(  "backgroundshadowsizey",
> self->backgroundshadowsizey)
> 
> After recompiling I have no errors and I can now place bounding boxes
> around my labels. Whoop!
> 
> Hope this helps...
> 
> Rob Martinson
> Nichebox - http://www.nichebox.com
> Development - http://dev.nichebox.com



More information about the mapserver-users mailing list