mapfish/mapfish-print — pull request #22 by ChristianKreuzberger (2012-09-03 10:32:12+00:00)
Title: externalgraphic + grahpicyoffset was not working properly

due to the way graphicyoffset was handled, the offset was working vice versa to the appropriate openlayers code.
As an example: yoffset: 0 would produce an icon with an arrow pointing to the bottom to be set "just right" with the arrow pointing at the coordinates in mapfish-print, however yoffset: -height would do the same in openlayers.
This minor code change changes the behaviour for externalGraphic:
yNew = y - height - yoffset
because yoffset is negative and height is positiv, an yoffset of -height will cancel out the height.
the default value of yoffset = -height/2.0f is still the same and is still producing the same effect.