Permalink
Browse files

Fixing a bad use of Float.MIN_VALUE causing issues (not drawing point…

…s with no time info if no timeframe passed)
  • Loading branch information...
1 parent 7d13f7e commit d406b4fdc844dc0306808c984c366470e8e0a767 @01010101 committed Jun 19, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/gml4u/drawing/GmlBrushManager.java
@@ -177,7 +177,7 @@ public void remove(String styleId) {
* @param scale - float
*/
public void draw(PGraphics g, Gml gml, float scale) {
- draw(g, gml, scale, Float.MIN_VALUE, Float.MAX_VALUE);
+ draw(g, gml, scale, 0, Float.MAX_VALUE);
}
/**
@@ -188,7 +188,7 @@ public void draw(PGraphics g, Gml gml, float scale) {
* @param time - float
*/
public void draw(PGraphics g, Gml gml, float scale, float time) {
- draw(g, gml, scale, Float.MIN_VALUE, time);
+ draw(g, gml, scale, 0, time);
}
/**
@@ -215,7 +215,7 @@ public void draw(PGraphics g, Gml gml, float scale, float timeStart, float timeE
* @param scale - float
*/
public void draw(PGraphics g, GmlStroke stroke, float scale) {
- draw(g, stroke, scale, Float.MIN_VALUE, Float.MAX_VALUE);
+ draw(g, stroke, scale, 0, Float.MAX_VALUE);
}
/**
@@ -226,7 +226,7 @@ public void draw(PGraphics g, GmlStroke stroke, float scale) {
* @param time - float
*/
public void draw(PGraphics g, GmlStroke stroke, float scale, float time) {
- draw(g, stroke, scale, Float.MIN_VALUE, time);
+ draw(g, stroke, scale, 0, time);
}
/**
@@ -262,7 +262,7 @@ public void draw(PGraphics g, GmlStroke stroke, float scale, float timeStart, fl
* @param drawer - drawer id
*/
public void draw(PGraphics g, GmlStroke stroke, float scale, String drawer) {
- draw(g, stroke, scale, Float.MIN_VALUE, Float.MAX_VALUE, drawer);
+ draw(g, stroke, scale, 0, Float.MAX_VALUE, drawer);
}
/**
@@ -274,7 +274,7 @@ public void draw(PGraphics g, GmlStroke stroke, float scale, String drawer) {
* @param drawer - drawer id
*/
public void draw(PGraphics g, GmlStroke stroke, float scale, float time, String drawer) {
- draw(g, stroke, scale, Float.MIN_VALUE, time, drawer);
+ draw(g, stroke, scale, 0, time, drawer);
}
/**

0 comments on commit d406b4f

Please sign in to comment.