mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Implement a simple RAII GAL attribute save/restore class that handles putting the GAL back the way it was found. This makes draw methods easier to write, as they don't need to worry if a called method will upset the attribute context (as long as the caller saves the context, or the callee does). Obviously not a good idea to use in tight loops, but when text is involved, this is negligible!