Skip to content

Commit

Permalink
musescore#20859: Combining two identical if-s into one
Browse files Browse the repository at this point in the history
  • Loading branch information
krasko78 committed Oct 27, 2024
1 parent c151185 commit 2fb56e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/inspector/models/text/textsettingsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ void TextSettingsModel::loadProperties(const PropertyIdSet& propertyIdSet)
QVariantList list = elementPropertyValue.toList();
return list.size() >= 2 ? list[0] : QVariant();
});
}

if (muse::contains(propertyIdSet, Pid::ALIGN)) {
loadPropertyItem(m_verticalAlignment, [](const QVariant& elementPropertyValue) -> QVariant {
QVariantList list = elementPropertyValue.toList();
return list.size() >= 2 ? list[1] : QVariant();
Expand Down

0 comments on commit 2fb56e5

Please sign in to comment.