|
|
@@ -55,7 +55,7 @@ DXFImport.prototype = new Paste();
|
|
|
DXFImport.includeBasePath = includeBasePath;
|
|
|
|
|
|
DXFImport.prototype.beginEvent = function () {
|
|
|
- Paste.prototype.beginEvent.call(this);
|
|
|
+ // Paste.prototype.beginEvent.call(this);
|
|
|
|
|
|
var fileDialogInfo;
|
|
|
if (!isNull(this.fileName)) {
|
|
|
@@ -79,10 +79,12 @@ DXFImport.prototype.beginEvent = function () {
|
|
|
this.terminate();
|
|
|
return;
|
|
|
}
|
|
|
- EAction.handleUserWarning("==");
|
|
|
// var ok = this.readTxt(fileDialogInfo[0]);
|
|
|
try {
|
|
|
- var file = this.sourceDi.importFile(fileDialogInfo[0], fileDialogInfo[1], false);
|
|
|
+ var di = this.getDocumentInterface(); // getAssignDocumentInterface(1);
|
|
|
+ var file = di.importFile(fileDialogInfo[0], fileDialogInfo[1], false);
|
|
|
+ di.regenerateScenes();
|
|
|
+ di.autoZoom();
|
|
|
if (file !== RDocumentInterface.IoErrorNoError) {
|
|
|
EAction.handleUserWarning(qsTr("Error while importing file %1").arg(fileDialogInfo[0]));
|
|
|
if (!isNull(this.sourceDi)) {
|