QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#333 - Add layer: new layer should be active one

Attached to Project: QCAD
Opened by Andrew (andrew) - Monday, 24 October 2011, 08:37 GMT+1
Last edited by Andrew (andrew) - Monday, 24 October 2011, 11:39 GMT+1
Task Type Bug Report
Category Main
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3 Beta 3
Due in Version 3.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Add layer: new layer should be active one

This task depends upon

Closed by  Andrew (andrew)
Monday, 24 October 2011, 11:39 GMT+1
Reason for closing:  Fixed
Comment by Andrew (andrew) - Monday, 24 October 2011, 08:49 GMT+1

Immediate fix for beginEvent in:
scripts/Layer/AddLayer/AddLayer.js:

AddLayer.prototype.beginEvent = function() {
    Layer.prototype.beginEvent.call(this);
 
    var dlg = new LayerDialog(this.getDocument());
    this.layer = dlg.show();
    if (isNull(this.layer)) {
        this.terminate();
        return;
    }
    
    var operation = new RAddObjectOperation(this.layer);
    var di = this.getDocumentInterface();
    di.applyOperation(operation);
 
    // make new layer the current layer:
    di.setCurrentLayer(this.layer);
 
    di.clearPreview();
    di.repaintViews();
 
    this.terminate();
};

Loading...