Skip to content

Commit 8cf1081

Browse files
manoloigorkorsukov
authored andcommitted
Fix lyrics() static initialization bug
Static variable with initializer only executes once.
1 parent 9ba0bcb commit 8cf1081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/engraving/api/v1/score.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ int Score::lyricCount() const
289289
/** APIDOC @property {Lyric[]} - list of lyrics */
290290
QQmlListProperty<Lyric> Score::lyrics() const
291291
{
292-
static std::vector<Lyrics*> list = score()->lyrics();
292+
static std::vector<Lyrics*> list;
293+
list = score()->lyrics();
293294
return wrapContainerProperty<Lyric>(this, list);
294295
}
295296

0 commit comments

Comments
 (0)