From db2d30f738b3978480aa5453b9035c573577b514 Mon Sep 17 00:00:00 2001 From: Ivan Holmes Date: Tue, 22 Sep 2020 18:24:12 +0100 Subject: [PATCH] Fix top note of piano chord not being rendered if it's G# --- _version.py | 2 +- chordsheet/render.py | 4 ++-- version.rc | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_version.py b/_version.py index 6fb8667..8b4f92d 100644 --- a/_version.py +++ b/_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- appName = "Chordsheet" -version = '0.4.4' +version = '0.4.5' diff --git a/chordsheet/render.py b/chordsheet/render.py index 35247f0..8fc3620 100644 --- a/chordsheet/render.py +++ b/chordsheet/render.py @@ -262,10 +262,10 @@ class PianoChart(Flowable): lastIndex = self.keyList.index(lastNote) curIndex = self.keyList.index(note) - if curIndex > lastIndex: + if curIndex > lastIndex and curIndex != 11: chartKeyList.extend( self.keyList[lastIndex+1:((curIndex+1) % len(self.keyList))]) - elif curIndex < lastIndex: + elif curIndex < lastIndex or curIndex == 11: chartKeyList.extend(self.keyList[lastIndex+1:]) chartKeyList.extend( self.keyList[0:((curIndex+1) % len(self.keyList))]) diff --git a/version.rc b/version.rc index aa230f7..681e4b3 100644 --- a/version.rc +++ b/version.rc @@ -6,8 +6,8 @@ VSVersionInfo( ffi=FixedFileInfo( # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) # Set not needed items to zero 0. -filevers=(0, 4, 4, 0), -prodvers=(0, 4, 4, 0), +filevers=(0, 4, 5, 0), +prodvers=(0, 4, 5, 0), # Contains a bitmask that specifies the valid bits 'flags'r mask=0x3f, # Contains a bitmask that specifies the Boolean attributes of the file. @@ -31,12 +31,12 @@ StringFileInfo( u'040904B0', [StringStruct(u'CompanyName', u'Ivan Holmes'), StringStruct(u'FileDescription', u'Chordsheet'), - StringStruct(u'FileVersion', u'0.4.4'), + StringStruct(u'FileVersion', u'0.4.5'), StringStruct(u'InternalName', u'Chordsheet'), StringStruct(u'LegalCopyright', u'Copyright (c) Ivan Holmes, 2020. Some rights reserved.'), StringStruct(u'OriginalFilename', u'chordsheet.exe'), StringStruct(u'ProductName', u'Chordsheet'), - StringStruct(u'ProductVersion', u'0.4.4')]) + StringStruct(u'ProductVersion', u'0.4.5')]) ]), VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) ]