Skip to content

Bug when calling lineAt or xlineAt on a NodeProxy #13

@hbeere

Description

@hbeere

The method fails when I call it. Tracing the bug, xlineAt() calls performAtControl(), where at line 131 there is this code:

keys.do { arg key, i;
    var val = nodeMap.settings[key];
    val !? {
        val = val.getValue;
        val !? { startLevels[i] = val };
        bundle = bundle.addAll([key, ctlIndex + i]);
    }
};

"settings" doesn't exist on nodeMap, so this fails. This is my fix:

keys.do { arg key, i;
    var val = nodeMap.at(key);      // here is the bug fix
    val !? {
        // val = val.getValue;      // get rid of this line, too
        val !? { startLevels[i] = val };
        bundle = bundle.addAll([key, ctlIndex + i]);
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions