Skip to content
Snippets Groups Projects
Commit 683bc80c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

default 0 value is sometimes problematic

parent b041aeec
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!386Resolve "Continous integration tests"
......@@ -391,8 +391,9 @@ public abstract class AbstractCellDesignerAliasConverter<T extends Element> impl
double ratio = 1 - (pointOnBorder.getY() - element.getY()) / element.getHeight();
result = ratio * (PI / 2) + BOTTOM_RESIDUE_MAX_ANGLE;
} else {
logger.warn("Problem with finding angle. Using default 0");
result = 0;
//TODO this should align the result to the closes possible value (not the arbitrary default)
logger.warn("Problem with finding angle. Using default");
result = PI/2;
}
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment