-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed loading of invalid color properties
This was regression in d8b6b11 since it used the return value of QVariant::convert to decide whether to use the converted value or to keep the original (string) value. This, combined with the fact that invalid colors are written out as empty strings, broke the loading of invalid color values. I seem to have added the check on the return value of convert to prevent data loss when a conversion to the expected type fails. However, I'm not entirely sure in which case this was preferable, so this change removes the check again. Also added an autotest, which can be adjusted or extended when we might eventually run into the use-case for checking the "convert" return value. In the process, fixed the loadCircularReference test, which seems to have been broken due to a change of behavior. And fixed the loadAndSavePropertyTypes test, which broke due to adding "drawFill". Closes #3793
- Loading branch information
Showing
3 changed files
with
55 additions
and
6 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