Merge pull request #407 from fsih/regroup

Remove ungroup on import
This commit is contained in:
DD Liu 2018-04-26 12:12:44 -04:00 committed by GitHub
commit 76075bcde1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,6 @@ import log from '../log/log';
import {trim} from '../helper/bitmap';
import {performSnapshot} from '../helper/undo';
import {undoSnapshot, clearUndoState} from '../reducers/undo';
import {isGroup, ungroupItems} from '../helper/group';
import {clearRaster, getRaster, setupLayers, hideGuideLayers, showGuideLayers} from '../helper/layer';
import {deleteSelection, getSelectedLeafItems} from '../helper/selection';
import {clearSelectedItems, setSelectedItems} from '../reducers/selected-items';
@ -233,9 +232,6 @@ class PaperCanvas extends React.Component {
item.translate(paper.project.view.center
.subtract(itemWidth / 2, itemHeight / 2));
}
if (isGroup(item)) {
ungroupItems([item]);
}
performSnapshot(paperCanvas.props.undoSnapshot, paperCanvas.props.format);
}