FS#2568RDocument::queryAllLayerStates() returns Qset of RLayerState::Id and not of type RLayer::Id
- Type
- Task
- Status
- Assigned
- Category
- Documentation
- Severity
- Very Low
- Priority
- Low
- Reported version
- n/a
- Operating system
- All
- Reported
- 2024-05-02 by CVH
- Votes
- 1
Andrew,
The documentation list RLayer::Id while it are RLayerState::Id that are returned.
In essence both are object IDs.
It is correct as in the associated remark: 'Set of layer state IDs.'
The typo can be sourced back to RDocument.cpp:
https://github.com/qcad/qcad/blob/master/src/core/RDocument.cpp#L1345
QSet<RLayer::Id> RDocument::queryAllLayerStates() const {
Regards,
CVH