From 029e76d965392104d8c2ee3e6851d942003b94bf Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 16 Apr 2008 01:30:40 +0000 Subject: [PATCH] Fix to Layer.Text to allow iconOffset of 0,0 from Edgemaster, r=me (Closes #1467) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index dd1b7479b6..23aab6bc26 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -171,8 +171,8 @@ OpenLayers.Layer.Text = OpenLayers.Class(OpenLayers.Layer.Markers, { // FIXME: At the moment, we only use this if we have an // externalGraphic, because icon has no setOffset API Method. - if (feature.style.graphicXOffset - && feature.style.graphicYOffset) { + if (feature.style.graphicXOffset !== null + && feature.style.graphicYOffset !== null) { iconOffset = new OpenLayers.Pixel( feature.style.graphicXOffset, feature.style.graphicYOffset);