Selector was not being hidden upon undo

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@223 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-29 13:46:50 +00:00
parent 482aae35ed
commit 54e20edef2
1 changed files with 4 additions and 7 deletions

View File

@ -542,9 +542,8 @@ function SvgCanvas(c)
if (selected == newSelected) return;
// remove selected outline from previously selected element
if (selected != null && theSelector != null) {
if (theSelector != null) {
selectorManager.releaseSelector(theSelector);
theSelector = selectorManager.requestSelector(selected);
}
selected = newSelected;
@ -552,11 +551,9 @@ function SvgCanvas(c)
if (selected != null) {
selectedBBox = selected.getBBox();
// we create this element lazily for the first time here
if (theSelector == null) {
theSelector = selectorManager.requestSelector(selected);
console.log(theSelector);
}
// the manager gives us a selector
theSelector = selectorManager.requestSelector(selected);
// recalculate size and then re-append to bottom of document
recalculateSelectedOutline();