]> git.donarmstrong.com Git - lilypond.git/commitdiff
musicxml2ly: Make sure movement_title exists before using it
authorThomas Weber <tw@notabit.eu>
Tue, 15 Dec 2015 08:07:13 +0000 (08:07 +0000)
committerJames Lowe <pkx166h@gmail.com>
Sat, 19 Dec 2015 10:48:37 +0000 (10:48 +0000)
Fixes a problem that was
generated by Sibelius'
own internal MusicXML
export functionality
(not Dolet).

scripts/musicxml2ly.py

index dda374d84e9f33562721b31dd70e0133e13f03cd..5cf53339a4159ad4fdbff77979907636d85b16e1 100644 (file)
@@ -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 ())