Fixed bug caused by moving a horizontal/vertical line
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@668 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -954,6 +954,9 @@ function BatchCommand(text) {
|
|||||||
// after this point, we have some change to this element
|
// after this point, we have some change to this element
|
||||||
|
|
||||||
var remap = function(x,y) {
|
var remap = function(x,y) {
|
||||||
|
// Prevent division by 0
|
||||||
|
if(!box.height) box.height = 1;
|
||||||
|
if(!box.width) box.width = 1;
|
||||||
return {
|
return {
|
||||||
'x':(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
|
'x':(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
|
||||||
'y':(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
|
'y':(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
|
||||||
|
|||||||
Reference in New Issue
Block a user