Commit db26f68
committed
* CC: Fix assert for invalid colour (ticket #1085, thanks Miguel Gimenez)
> The tree can take an invalid colour, interpreting it as "Default colour".
> The original problem happened because we take m_colour RGB components to
calculate the CRC, and that can't be done in an uninitialized colour.
> Just adding the validity check in CRC calculation is enough.
> Adding an initialization just in case. Hopefully it doesn't slow things
down too much.
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@12322 2a5c6006-c6dd-42ca-98ab-0921f2732cef1 parent c57446d commit db26f68
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| 1170 | + | |
1170 | 1171 | | |
1171 | 1172 | | |
1172 | 1173 | | |
| |||
1451 | 1452 | | |
1452 | 1453 | | |
1453 | 1454 | | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1457 | 1462 | | |
1458 | 1463 | | |
1459 | 1464 | | |
| |||
0 commit comments