This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 1faeb8d
committed
[Bug 22509] Tree View Widget crash
Ensure null `mEllipsisLength` does not cause widget crash
The tree view widget was crashing when performing an initial draw when
the `updateSeparator` handler encountered a null `mEllipsisLength` in
certain circumstances. This change moves the `ensureEllipsis` call from
`displayWidth` to `updateSeparator`. This will actually result in the
handler being called fewer times per paint cycle.1 parent d0bf6ef commit 1faeb8d
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
| 1545 | + | |
1545 | 1546 | | |
1546 | 1547 | | |
1547 | 1548 | | |
| |||
2632 | 2633 | | |
2633 | 2634 | | |
2634 | 2635 | | |
2635 | | - | |
2636 | | - | |
2637 | 2636 | | |
2638 | 2637 | | |
2639 | 2638 | | |
| |||
0 commit comments