Permalink
Browse files

fix for noise1dOctave crash. constructor was calling setup so events …

…were being registered twice. Closes #1161
  • Loading branch information...
1 parent d473ca8 commit 587e658b8e0afac21972c13715f45601cfa7b3d2 @ofTheo ofTheo committed Apr 19, 2012
View
5 examples/math/noise1dExample/src/ofxSimpleSlider.cpp
@@ -6,11 +6,6 @@
#include "ofxSimpleSlider.h"
-//----------------------------------------------------
-ofxSimpleSlider::ofxSimpleSlider(){
- setup (20.0,20.0, 255.0,16.0, 0.0,255.0, 0.5, false, true);
-}
-
//-----------------------------------------------------------------------------------------------------------------------
void ofxSimpleSlider::setup (float inx, float iny, float inw, float inh, float loVal, float hiVal, float initialValue, bool bVert, bool bDrawNum){
x = inx;
View
4 examples/math/noise1dExample/src/ofxSimpleSlider.h
@@ -12,9 +12,7 @@
class ofxSimpleSlider {
public:
-
- ofxSimpleSlider();
-
+
void setup (float inx, float iny, float inw, float inh, float loVal, float hiVal, float initialPercent, bool bVert, bool bDrawNum);
void draw(ofEventArgs& event);
View
6 examples/math/noise1dOctaveExample/src/ofxSimpleSlider.cpp
@@ -5,12 +5,6 @@
*/
#include "ofxSimpleSlider.h"
-
-//----------------------------------------------------
-ofxSimpleSlider::ofxSimpleSlider(){
- setup (20.0,20.0, 255.0,16.0, 0.0,255.0, 0.5, false, true);
-}
-
//-----------------------------------------------------------------------------------------------------------------------
void ofxSimpleSlider::setup (float inx, float iny, float inw, float inh, float loVal, float hiVal, float initialValue, bool bVert, bool bDrawNum){
x = inx;
View
4 examples/math/noise1dOctaveExample/src/ofxSimpleSlider.h
@@ -12,9 +12,7 @@
class ofxSimpleSlider {
public:
-
- ofxSimpleSlider();
-
+
void setup (float inx, float iny, float inw, float inh, float loVal, float hiVal, float initialPercent, bool bVert, bool bDrawNum);
void draw(ofEventArgs& event);

0 comments on commit 587e658

Please sign in to comment.