Commit 634835b
fix(shot): prevent abnormal shape drawing when AI assistant button is clicked
AI assistant is not a drawing tool, but ShapesWidget treated it as one.
When m_currentType was set to "aiassistant", dragging in the capture area
would enter the shape recording logic (m_isRecording = true) and fall
through to the "non-text" branch in mouseReleaseEvent, creating an
unexpected shape on the canvas.
Skip the drawing logic in mousePressEvent when m_currentType is
"aiassistant" so that existing shapes are preserved and no new shapes
are created.
bug: https://pms.uniontech.com/bug-view-356039.html1 parent b7c8c5f commit 634835b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1344 | 1349 | | |
1345 | 1350 | | |
1346 | 1351 | | |
| |||
0 commit comments