Merge pull request #4242 from marcjansen/fix-drawtext-regression

Fix a drawText regression introduced with 31a68e2
This commit is contained in:
Marc Jansen
2015-10-09 16:07:46 +02:00
+2 -4
View File
@@ -1560,10 +1560,8 @@ goog.inherits(ol.render.canvas.TextReplay, ol.render.canvas.Replay);
*/ */
ol.render.canvas.TextReplay.prototype.drawText = ol.render.canvas.TextReplay.prototype.drawText =
function(flatCoordinates, offset, end, stride, geometry, feature) { function(flatCoordinates, offset, end, stride, geometry, feature) {
if (this.text_ === '' || if (this.text_ === '' || !this.textState_ ||
!this.textState_ || (!this.textFillState_ && !this.textStrokeState_)) {
(this.textFillState_ &&
!this.textStrokeState_)) {
return; return;
} }
if (this.textFillState_) { if (this.textFillState_) {