From 937a9def770c9ba3ea694a57238cd81e32c95d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 20 Jun 2011 20:25:02 +0100 Subject: [PATCH] Override default fillColor to 'black' in CharacterStyle. --- src/style/CharacterStyle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/style/CharacterStyle.js b/src/style/CharacterStyle.js index acd5038d..5147da25 100644 --- a/src/style/CharacterStyle.js +++ b/src/style/CharacterStyle.js @@ -17,10 +17,12 @@ var CharacterStyle = this.CharacterStyle = PathStyle.extend({ /** @lends CharacterStyle# */ - _defaults: Base.merge({ + _defaults: Base.merge(PathStyle.prototype._defaults, { + // Override default fillColor of CharacterStyle + fillColor: 'black', fontSize: 10, font: 'sans-serif' - }, PathStyle.prototype._defaults), + }), _owner: TextItem, _style: '_characterStyle'