From 846ee8eca1a5b3133fc1bcb87ef0f7a3df63feda Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 31 Jan 2011 20:27:05 +0000 Subject: [PATCH] Better fix for Issue 769: Text tool defaults to white in FF4 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1961 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index de57d94a..35343acb 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -8697,8 +8697,8 @@ var changeSelectedAttributeNoUndo = function(attr, newValue, elems) { var old_w = getBBox(elem).width; elem.textContent = newValue; - // FF bug occurs on on transformed elements - if(elem.getAttribute('transform')) { + // FF bug occurs on on rotated elements + if(/rotate/.test(elem.getAttribute('transform'))) { elem = ffClone(elem); }