Nested Indent mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Tavmjong Bah |
Bug Description
Synopsys Coverity static analysis reports an error in the following file:
src/libnrtype
Please add braces around lines 613 and 614 or change the indent on 614.
Thank you,
- dan
608 if (input_item->Type() == TEXT_SOURCE) {
609 SPStyle const *style = static_
610 if (_characters[
611 dx -= style->
parent: This 'if' statement is the parent, indented to column 17.
612 if (_characters[
nephew: This statement is nested within its parent, indented to column 21.
613 dx -= style->
CID 10529 (#1 of 1): Nesting level does not match indentation (NESTING_
uncle: This statement is indented to column 21, as if it were nested within the preceding parent statement, but it is not.
614 dx -= getTextLengthIn
615 }
Thanks for the report !
Traced back to https:/ /gitlab. com/inkscape/ inkscape/ commit/ 374aa610cb550cf 7dcd283ca93ad0a d844732d32# 5d4166a7de3e77e 6dd62fc48083ff6 8bd0493048_ 601_611
Tav: Assigning to you since you probably know that code best, but if you don't have time, feel free to unasssign :)