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
committed by Andreas Hocevar
parent c9c845394f
commit 313bff7aff

View File

@@ -1560,10 +1560,8 @@ goog.inherits(ol.render.canvas.TextReplay, ol.render.canvas.Replay);
*/
ol.render.canvas.TextReplay.prototype.drawText =
function(flatCoordinates, offset, end, stride, geometry, feature) {
if (this.text_ === '' ||
!this.textState_ ||
(this.textFillState_ &&
!this.textStrokeState_)) {
if (this.text_ === '' || !this.textState_ ||
(!this.textFillState_ && !this.textStrokeState_)) {
return;
}
if (this.textFillState_) {