Revision: 4506
          http://pd-gem.svn.sourceforge.net/pd-gem/?rev=4506&view=rev
Author:   zmoelnig
Date:     2011-08-28 12:48:55 +0000 (Sun, 28 Aug 2011)
Log Message:
-----------
start parameters at '1'

Modified Paths:
--------------
    trunk/Gem/src/Pixes/pix_freeframe.cpp

Modified: trunk/Gem/src/Pixes/pix_freeframe.cpp
===================================================================
--- trunk/Gem/src/Pixes/pix_freeframe.cpp       2011-08-28 12:48:29 UTC (rev 
4505)
+++ trunk/Gem/src/Pixes/pix_freeframe.cpp       2011-08-28 12:48:55 UTC (rev 
4506)
@@ -538,6 +538,8 @@
     m_parameter.clear();
     unsigned int count=getNumParameters_();
     unsigned int i;
+    
+    m_parameterNames.push_back(""); // dummy parameter
     for(i=0; i<count; i++) {
       std::string name=getParameterName_(i);
       FFUInt32 type = getParameterType_ (i);
@@ -760,7 +762,7 @@
   char tempVt[5];
 
   unsigned int i;
-  for(i=0; i<numparams; i++) {
+  for(i=1; i<numparams; i++) {
     snprintf(tempVt, 5, "#%d", i);
     tempVt[4]=0;
     unsigned int parmType=0;
@@ -934,7 +936,7 @@
     error("no instance of plugin available");
     return;
   }
-  std::string key=m_plugin->getParameterName(param);
+  std::string key=m_plugin->getParameterName(param-1);
   parmMess(key, value);
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
pd-gem-CVS mailing list
pd-gem-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pd-gem-cvs

Reply via email to