From 46d5a8759c64c51083386af0c03300c0fd666798 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 25 Aug 2022 23:39:55 -0500 Subject: [PATCH] GUI: fix some interpolate issues --- src/gui/editing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/editing.cpp b/src/gui/editing.cpp index 1ca3ff691..391a39f62 100644 --- a/src/gui/editing.cpp +++ b/src/gui/editing.cpp @@ -616,9 +616,9 @@ void FurnaceGUI::doInterpolate() { } } else { for (int j=selStart.y; j<=selEnd.y; j++) { - if (pat->data[j][0]!=0 && pat->data[j][1]!=0) { + if (pat->data[j][0]!=0 || pat->data[j][1]!=0) { if (pat->data[j][0]!=100 && pat->data[j][0]!=101 && pat->data[j][0]!=102) { - points.emplace(points.end(),j,pat->data[j][0]+pat->data[j][1]*12); + points.emplace(points.end(),j,pat->data[j][0]+(signed char)pat->data[j][1]*12); } } }