Fix some small issues with foreignObject tool

Don't disable line tool after using foreignObject  tool.
Don't set stroke to 'none' after using foreignObject  editor.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1411 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jacques Distler
2010-02-19 14:09:46 +00:00
parent 98be8d5f81
commit 7236577141
2 changed files with 3 additions and 2 deletions

View File

@@ -666,6 +666,7 @@ function svg_edit_setup() {
var updateToolbar = function() {
if (selectedElement != null &&
selectedElement.tagName != "image" &&
selectedElement.tagName != "text" &&
selectedElement.tagName != "foreignObject" &&
selectedElement.tagName != "g")
{
@@ -1822,7 +1823,7 @@ function svg_edit_setup() {
var cancelOverlays = function() {
$('#dialog_box').hide();
if (!editingsource && !docprops) return;
if (!editingsource && !editingforeign && !docprops) return;
if (editingsource) {
var oldString = svgCanvas.getSvgString();

View File

@@ -3654,7 +3654,7 @@ function BatchCommand(text) {
cleanupElement(element);
if(current_mode == "path") {
pathActions.toEditMode(element);
} else if (current_mode == "text" || current_mode == "image") {
} else if (current_mode == "text" || current_mode == "image" || current_mode == "foreignObject") {
// keep us in the tool we were in unless it was a text or image element
canvas.addToSelection([element], true);
}