You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Layer::is_locked tests bit 0x04, but the LAYER values word puts locked at 0x08 (0x04 is frozen-in-new-viewports) #26
src/tables/layer.rs: is_locked() returns flags & 0x04 != 0. In the DWG LAYER values BS (spec §20.4.53) the bits are 0x01 frozen, 0x02 on (inverted sense on some releases), 0x04 frozen in new viewports, 0x08 locked, 0x10 plotting, 0x3E0 lineweight. #23's Layer_Lock reads 0x03F8 for the R2007+ path; the pre-R2007 accessor still tests 0x04.
Fixing it changes pre-R2007 behaviour and an existing unit test, so it was deliberately left out of #23. Do: fix the mask, fix the doc comment ("Bit 0x04 of flags: the layer is locked" is wrong), update the test, and add is_frozen_in_new_viewports() for 0x04 so the bit is not lost.
Activity