Commit 951ad59
fix(shot): reset selection index in clearSelected and guard deleteCurrentShape bounds
clearSelected() did not reset m_selectedIndex/-hoveredIndex, causing
the blue selection border on mosaic/blur shapes to persist and be
saved into the final screenshot. Also add lower bound check in
deleteCurrentShape() to prevent crash when m_selectedOrder is -1.
bug: https://pms.uniontech.com/bug-view-356629.html1 parent e5f66dd commit 951ad59
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
| |||
2389 | 2394 | | |
2390 | 2395 | | |
2391 | 2396 | | |
2392 | | - | |
| 2397 | + | |
2393 | 2398 | | |
2394 | 2399 | | |
2395 | 2400 | | |
| |||
0 commit comments