summaryrefslogtreecommitdiff
blob: 0c9c43d11877dc7c00a95d423a4b66e8fd9fc1fb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/engraving/style/style.cpp
+++ b/src/engraving/style/style.cpp
@@ -42,7 +42,7 @@ using namespace mu::engraving;
 
 const PropertyValue& MStyle::value(Sid idx) const
 {
-    if (idx == Sid::NOSTYLE) {
+    if (idx == Sid::NOSTYLE || size_t(idx) >= m_values.size()) {
         static PropertyValue dummy;
         return dummy;
     }