Skip to content

Commit 21ff719

Browse files
white-axefundamental
authored andcommitted
Fix harmonic numbers being off by one after scrolling
1 parent ba54754 commit 21ff719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mruby-zest/example/HarmonicEdit.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Widget {
3030

3131
children.each_with_index do |ch, i|
3232
ii = (i+off).to_i.to_s
33-
ch.children[1].label = ii
33+
ch.children[1].label = (i+off+1).to_i.to_s
3434
if(self.type == :oscil)
3535
ch.children[0].extern = self.extern + "magnitude" + ii
3636
ch.children[2].extern = self.extern + "phase" + ii

0 commit comments

Comments
 (0)