summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Weber <tw@notabit.eu>2015-12-15 08:07:13 +0000
committerJames Lowe <pkx166h@gmail.com>2015-12-19 10:48:37 +0000
commite313fac84da1dcce559c9cfa549d57761aa9684a (patch)
tree76653ae8a10bd214752b272afd8026aa3b28b93b /scripts
parentbfc3420ada8810d57156e9fc871560188f044a64 (diff)
musicxml2ly: Make sure movement_title exists before using it
Fixes a problem that was generated by Sibelius' own internal MusicXML export functionality (not Dolet).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/musicxml2ly.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py
index dda374d84e..5cf53339a4 100644
--- a/scripts/musicxml2ly.py
+++ b/scripts/musicxml2ly.py
@@ -178,7 +178,7 @@ def extract_score_information (tree):
if work:
work_title = work.get_work_title ()
set_if_exists ('title', work_title)
- if work_title == '':
+ if work_title == '' and movement_title :
set_if_exists ('title', movement_title.get_text ())
elif movement_title:
set_if_exists ('subtitle', movement_title.get_text ())