bug rotation bug
parent
1f8231192e
commit
7654149369
|
@ -92,7 +92,6 @@ MD.Import = function(){
|
||||||
function openImage(e){
|
function openImage(e){
|
||||||
const f = this;
|
const f = this;
|
||||||
if(f.files.length === 1) {
|
if(f.files.length === 1) {
|
||||||
console.log("clear")
|
|
||||||
svgCanvas.clear();
|
svgCanvas.clear();
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
reader.onloadend = function(e) {
|
reader.onloadend = function(e) {
|
||||||
|
|
|
@ -581,7 +581,7 @@ svgedit.history.UndoManager.prototype.beginUndoableChange = function(attrName, e
|
||||||
svgedit.history.UndoManager.prototype.finishUndoableChange = function() {
|
svgedit.history.UndoManager.prototype.finishUndoableChange = function() {
|
||||||
var p = this.undoChangeStackPointer--;
|
var p = this.undoChangeStackPointer--;
|
||||||
var changeset = this.undoableChangeStack[p];
|
var changeset = this.undoableChangeStack[p];
|
||||||
var i = changeset['elements'].length;
|
var i = changeset['elements'].filter(Boolean).length;
|
||||||
var attrName = changeset['attrName'];
|
var attrName = changeset['attrName'];
|
||||||
var batchCmd = new svgedit.history.BatchCommand("Change " + attrName);
|
var batchCmd = new svgedit.history.BatchCommand("Change " + attrName);
|
||||||
while (i--) {
|
while (i--) {
|
||||||
|
|
Loading…
Reference in New Issue