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
master
Mark Nickel 2013-05-07 20:47:56 +00:00
parent ccbb084bbf
commit fc5673ea4d
1 changed files with 6 additions and 1 deletions

View File

@ -65,6 +65,11 @@ svgedit.recalculate.updateClipPath = function(attr, tx, ty) {
svgedit.recalculate.recalculateDimensions = function(selected) { svgedit.recalculate.recalculateDimensions = function(selected) {
if (selected == null) return null; 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 svgroot = context_.getSVGRoot();
var tlist = svgedit.transformlist.getTransformList(selected); var tlist = svgedit.transformlist.getTransformList(selected);
@ -807,4 +812,4 @@ svgedit.recalculate.recalculateDimensions = function(selected) {
return batchCmd; return batchCmd;
}; };
})(); })();