[SCM] calf/master: at least make freqgridline return false when the gridline subindex is below zero.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:08 UTC 2013


The following commit has been merged in the master branch:
commit 2b162378b0a84cf960adbbcf642c2940e2e06f4d
Author: Torben Hohn <torbenh at gmx.de>
Date:   Sat Jan 24 23:31:19 2009 +0100

    at least make freqgridline return false when the gridline subindex is below zero.

diff --git a/src/modules_dsp.cpp b/src/modules_dsp.cpp
index 0395161..2cdc390 100644
--- a/src/modules_dsp.cpp
+++ b/src/modules_dsp.cpp
@@ -67,6 +67,8 @@ static void set_channel_color(cairo_iface *context, int channel)
 
 static bool get_freq_gridline(int subindex, float &pos, bool &vertical, std::string &legend, cairo_iface *context, bool use_frequencies = true)
 {
+    if (subindex < 0 )
+	return false;
     if (use_frequencies)
     {
         if (subindex < 28)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list