Fixed issue 114: A linear gradient becomes black when the object is selected

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@452 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-08-24 12:55:22 +00:00
parent 2ec215492e
commit 835574375c
1 changed files with 1 additions and 1 deletions

View File

@ -2272,7 +2272,7 @@ function SvgCanvas(c)
this.getBBox = function(elem) {
var selected = elem || selectedElements[0];
if(selected.textContent == '') {
if(elem.nodeName == 'text' && selected.textContent == '') {
selected.textContent = 'a'; // Some character needed for the selector to use.
var ret = selected.getBBox();
selected.textContent = '';