From 582cb949c83c774ff4b93802c1c66027b0c90569 Mon Sep 17 00:00:00 2001 From: Lukas Ladenberger <lukas.ladenberger@googlemail.com> Date: Fri, 9 Nov 2012 10:34:50 +0100 Subject: [PATCH] fixed bug: negative coordinates were not shown --- .../gef/editor/attribute/BAttributeCoordinates.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/BAttributeCoordinates.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/BAttributeCoordinates.java index 2aeb359d..193d963f 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/BAttributeCoordinates.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/attribute/BAttributeCoordinates.java @@ -27,12 +27,9 @@ public class BAttributeCoordinates extends AbstractAttribute { Point point = (Point) element; StringBuffer buf = new StringBuffer(); buf.append("["); - if (point.x >= 0) - buf.append(point.x); - if (point.y >= 0) { - buf.append(", "); - buf.append(point.y); - } + buf.append(point.x); + buf.append(", "); + buf.append(point.y); buf.append("]"); return buf.toString(); } -- GitLab