Crash viewing file with Selectors and CSS dialog open if dangling semicolon present (debug build)
does not apply to builds unless you have built it as a debug build
Steps to reproduce:
- open Inkscape
- open badfile.svg
- open Selectors and CSS dialog
What happened?
- assert fails in the debug build, inkscape_backtrace_open_CSS.txt
What should have happened?
- no crash.
the file has invalid CSS, but Inkscape still shouldn't crash. Invalid CSS was created bug an Inkscape bug, see inbox#4906 (moved)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<style
id="pathanim_heart">fill: blue; #heart {}
.heart { 0%, 0% }
</style>
</svg>
Version Info:
- Occurs Inkscape 1.2-dev (ac8c0b37, 2021-05-09) Linux Mint 20
- Not replicated Inkscape 1.0.2 (16c81841, 2021-03-16) Linux Mint 20
For history, assert was added in 53a8040e
Edited by Nathan Lee