Commit 7c742914 authored by Antoine's avatar Antoine

Searching a bug on negative width strokes

parent 33649a90
...@@ -187,7 +187,8 @@ public class GraphMetrics { ...@@ -187,7 +187,8 @@ public class GraphMetrics {
public double lengthToGu(double value, StyleConstants.Units units) { public double lengthToGu(double value, StyleConstants.Units units) {
switch (units) { switch (units) {
case PX: case PX:
return (value - 0.01f) / ratioPx2Gu; //return (value - 0.01f) / ratioPx2Gu;
return value / ratioPx2Gu;
case PERCENTS: case PERCENTS:
return (diagonal * value); return (diagonal * value);
case GU: case GU:
...@@ -231,7 +232,8 @@ public class GraphMetrics { ...@@ -231,7 +232,8 @@ public class GraphMetrics {
public double lengthToPx(double value, StyleConstants.Units units) { public double lengthToPx(double value, StyleConstants.Units units) {
switch (units) { switch (units) {
case GU: case GU:
return (value - 0.01f) * ratioPx2Gu; //return (value - 0.01f) * ratioPx2Gu;
return value * ratioPx2Gu;
case PERCENTS: case PERCENTS:
return (diagonal * value) * ratioPx2Gu; return (diagonal * value) * ratioPx2Gu;
case PX: 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