Fixed Issue 98: Blank text field deactives the Selection tool
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@447 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
7b31879ec2
commit
fa0ea55521
|
@ -2262,8 +2262,17 @@ function SvgCanvas(c)
|
||||||
|
|
||||||
this.getBBox = function(elem) {
|
this.getBBox = function(elem) {
|
||||||
var selected = elem || selectedElements[0];
|
var selected = elem || selectedElements[0];
|
||||||
|
|
||||||
|
if(selected.textContent == '') {
|
||||||
|
selected.textContent = 'a'; // Some character needed for the selector to use.
|
||||||
|
var ret = selected.getBBox();
|
||||||
|
selected.textContent = '';
|
||||||
|
} else {
|
||||||
|
var ret = selected.getBBox();
|
||||||
|
}
|
||||||
|
|
||||||
// get the bounding box from the DOM (which is in that element's coordinate system)
|
// get the bounding box from the DOM (which is in that element's coordinate system)
|
||||||
return selected.getBBox();
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getRotationAngle = function(elem) {
|
this.getRotationAngle = function(elem) {
|
||||||
|
|
Loading…
Reference in New Issue