Crash on adding crescendo while another one is selected
Ubuntu 17.10, 3.0 built from sources.
Scenario:
- Add one crescendo
- Select crescendo with double-click
- Add another crescendo while the first one is selected
- Try to select any element
Result: crash.
Expected result: Select without crash :)
Call stack:
1 Ms::Element::canvasBoundingRect
element.h 250
2 Ms::ScoreView::mousePressEvent
events.cpp 376
3 QWidget::event(QEvent *)
4 Ms::ScoreView::event
events.cpp 70
No ideas about the reason.
Comments
The same scenario crashes with spacers instead of crescendos.
From what I observe, it's most likely a side effect of this commit on January 20: 50bc1f7
Indeed, with the previous nightly (9d9cd89) and after adding the second crescendo, it was impossible to select a new element (rest, note etc.) without doing "Escape" beforehand.
With the nightly mentioned first above, it is now possible to select (note, rest) immediately (without Escape), but this leads to a crash.
Ok, I know this PR. The first part of it has already been fixed. It is time for the second one :) I'll do my best to fix it today.
Fixed in branch master, commit f924a38b7b
fix #269370 crash dropping element while in edit mode
In reply to Ok, I know this PR. The… by Anatoly-os
When dropping something in edit mode, the state is now changed. Dropping something while in other states may be ignored or allowed without changing state.
Automatically closed -- issue fixed for 2 weeks with no activity.