Skip to content

Commit c6cba47

Browse files
committed
Merge pull request #449 from AntonioBL/delete_part_tab
fix #22052 : Part not completely deleted
2 parents e41f055 + 3aa454d commit c6cba47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mscore/scoretab.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ void ScoreTab::updateExcerpts()
228228
Score* score = v->score()->rootScore();
229229
clearTab2();
230230
//delete all scoreviews for parts, especially for the deleted ones
231-
for (int i = 0; i < stack->count(); ++i) {
231+
int n = stack->count() - 1;
232+
for (int i = n; i >= 0; --i) {
232233
QSplitter* vs = static_cast<QSplitter*>(stack->widget(i));
233234
ScoreView* sview = static_cast<ScoreView*>(vs->widget(0));
234235

0 commit comments

Comments
 (0)