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-75d572ba1dddmaster
parent
2ec215492e
commit
835574375c
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue