From 01e10a18540599991fbfd88bc8d347e62a533d56 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 27 Nov 2009 08:43:25 +0100 Subject: [PATCH] ZynAddSubFX: fixed commit d61283ad93a78c57afb6a3c55a87ff7f99568c4f Commit d61283ad93a78c57afb6a3c55a87ff7f99568c4f (cherry picked from official upstream) contained a type which makes compilation of ZASF plugin fail. Fix this by using correct variable name. --- plugins/zynaddsubfx/src/UI/VirKeyboard.cc | 2 +- plugins/zynaddsubfx/src/UI/VirKeyboard.fl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/zynaddsubfx/src/UI/VirKeyboard.cc b/plugins/zynaddsubfx/src/UI/VirKeyboard.cc index af7626428..193e1dc7c 100644 --- a/plugins/zynaddsubfx/src/UI/VirKeyboard.cc +++ b/plugins/zynaddsubfx/src/UI/VirKeyboard.cc @@ -103,7 +103,7 @@ if ((event==FL_PUSH)||(event==FL_DRAG)||(event==FL_RELEASE)){ }; }; - if ((keypos!=-1)&&((event==FL_PUSH)||(event==FL_DRAG))&& + if ((kpos!=-1)&&((event==FL_PUSH)||(event==FL_DRAG))&& (Fl::event_shift()==0)) { presskey(kpos,1,1); }; diff --git a/plugins/zynaddsubfx/src/UI/VirKeyboard.fl b/plugins/zynaddsubfx/src/UI/VirKeyboard.fl index 2a7ab52eb..a0b4c721c 100644 --- a/plugins/zynaddsubfx/src/UI/VirKeyboard.fl +++ b/plugins/zynaddsubfx/src/UI/VirKeyboard.fl @@ -138,7 +138,7 @@ if ((event==FL_PUSH)||(event==FL_DRAG)||(event==FL_RELEASE)){ }; }; - if ((keypos!=-1)&&((event==FL_PUSH)||(event==FL_DRAG))&& + if ((kpos!=-1)&&((event==FL_PUSH)||(event==FL_DRAG))&& (Fl::event_shift()==0)) { presskey(kpos,1,1); };