From 9279ba0a1d015583b5ac33e8eb3521e22f595e04 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 9 Dec 2009 19:06:28 +0000 Subject: [PATCH] Added fix for Issue 349 (and 352) to trunk git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1005 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 27b8fe73..e70a3b10 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -5423,7 +5423,7 @@ function BatchCommand(text) { if (oldval == null) oldval = ""; if (oldval !== newValue) { if (attr == "#text") { - var old_w = elem.getBBox().width; + var old_w = canvas.getBBox(elem).width; elem.textContent = newValue; elem = canvas.quickClone(elem); @@ -6095,7 +6095,6 @@ function BatchCommand(text) { this.setUiStrings = function(strs){ $.extend(uiStrings, strs); - console.log(uiStrings) } this.clear();