fix volta import for OVE
This commit is contained in:
parent
8a2c701a85
commit
7c059a6bcf
1 changed files with 3 additions and 19 deletions
|
@ -2121,25 +2121,9 @@ void OveToMScore::convertRepeats(Measure* measure, int part, int staff, int trac
|
|||
if (absTick1 < absTick2) {
|
||||
Volta* volta = new Volta(score_);
|
||||
volta->setTrack(track);
|
||||
|
||||
// volta->setTick1(absTick1);
|
||||
// volta->setTick2(absTick2);
|
||||
|
||||
// does not work as segments do not exist
|
||||
// at time of call (ws)
|
||||
|
||||
Segment* s1 = score_->tick2segment(absTick1);
|
||||
Segment* s2 = score_->tick2segment(absTick2);
|
||||
if (s1 == 0 || s2 == 0) {
|
||||
qDebug("cannot place %s at tick %d - %d (%p-%p)\n",
|
||||
volta->name(), absTick1, absTick2, s1, s2);
|
||||
}
|
||||
else {
|
||||
volta->setTick(s1->tick());
|
||||
volta->setTick2(s2->tick());
|
||||
s1->add(volta);
|
||||
}
|
||||
|
||||
volta->setTick(absTick1);
|
||||
volta->setTick2(absTick2);
|
||||
score_->addElement(volta);
|
||||
volta->setVoltaType(VoltaType::CLOSED);
|
||||
volta->setText(ending->getText());
|
||||
|
||||
|
|
Loading…
Reference in a new issue