Applying recent 2.4 branch changes to trunk

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1174 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-01-08 20:36:39 +00:00
parent bb0d190b4a
commit 4313c95d7e
5 changed files with 271 additions and 123 deletions

View File

@@ -216,7 +216,7 @@ function svg_edit_setup() {
selectedElement = elem;
}
}
// we update the contextual panel with potentially new
// positional/sizing information (we DON'T want to update the
// toolbar here as that creates an infinite loop)
@@ -347,8 +347,11 @@ function svg_edit_setup() {
// updates the context panel tools based on the selected element
var updateContextPanel = function() {
var elem = selectedElement;
// If element has just been deleted, consider it null
if(elem != null && !elem.parentNode) elem = null;
var currentLayer = svgCanvas.getCurrentLayer();
var currentMode = svgCanvas.getMode();
// No need to update anything else in rotate mode
if (currentMode == 'rotate' && elem != null) {
var ang = svgCanvas.getRotationAngle(elem);
@@ -366,7 +369,6 @@ function svg_edit_setup() {
$('#angle').val(angle);
if(svgCanvas.addedNew) {
console.log(elname)
if(elname == 'image') {
promptImgURL();
} else if(elname == 'text') {