-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect symbols appearing for categorized and graduated renderers
This was triggered by 18614e1, which revealed a deeper bug in the handling of symbols by these renderers. For both renderers a const method returns a non-const pointer to a symbol and is used to modify this symbol in place. Because both renderers store their classes in a QList (implicitly shared) this means that all shared class lists were being updated when a clone of a renderer has its symbols altered in this way. Prior to 18614e these class QLists were being detached and copied in random ways. Work around this by forcing a deep copy of the class lists when a renderer is cloned.
- Loading branch information
1 parent
6a973d6
commit e9cd829
Showing
4 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters