Commit 7c742914 authored by Antoine's avatar Antoine

Searching a bug on negative width strokes

parent 33649a90
......@@ -187,7 +187,8 @@ public class GraphMetrics {
public double lengthToGu(double value, StyleConstants.Units units) {
switch (units) {
case PX:
return (value - 0.01f) / ratioPx2Gu;
//return (value - 0.01f) / ratioPx2Gu;
return value / ratioPx2Gu;
case PERCENTS:
return (diagonal * value);
case GU:
......@@ -231,7 +232,8 @@ public class GraphMetrics {
public double lengthToPx(double value, StyleConstants.Units units) {
switch (units) {
case GU:
return (value - 0.01f) * ratioPx2Gu;
//return (value - 0.01f) * ratioPx2Gu;
return value * ratioPx2Gu;
case PERCENTS:
return (diagonal * value) * ratioPx2Gu;
case PX:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment