From fc5673ea4d5c048b80ea3f7bb9cc1a3b3606ef64 Mon Sep 17 00:00:00 2001 From: Mark Nickel Date: Tue, 7 May 2013 20:47:56 +0000 Subject: [PATCH] Emergency patch to fix issue introduced in the svg core of Firefox as they are moving forward with implementing features of SVG 2 See this issue in svg-edit project tracker: Issue 1081. It contains pointers to the bugzilla thread if you are so interested git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2509 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/recalculate.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/recalculate.js b/editor/recalculate.js index 53a44310..caeb8e92 100644 --- a/editor/recalculate.js +++ b/editor/recalculate.js @@ -65,6 +65,11 @@ svgedit.recalculate.updateClipPath = function(attr, tx, ty) { svgedit.recalculate.recalculateDimensions = function(selected) { if (selected == null) return null; + // Firefox Issue - 1081 + if (selected.nodeName == "svg" && navigator.userAgent.indexOf("Firefox/20") >= 0) { + return null; + } + var svgroot = context_.getSVGRoot(); var tlist = svgedit.transformlist.getTransformList(selected); @@ -807,4 +812,4 @@ svgedit.recalculate.recalculateDimensions = function(selected) { return batchCmd; }; -})(); \ No newline at end of file +})();