[dia] [autorouting] Fix obviously wrong direction info
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [autorouting] Fix obviously wrong direction info
- Date: Sun, 15 Aug 2010 19:07:18 +0000 (UTC)
commit 1a96f56a63fb414785ecdf9a621e4eafaa21e970
Author: Hans Breuer <hans breuer org>
Date: Sun Aug 15 21:06:18 2010 +0200
[autorouting] Fix obviously wrong direction info
objects/ER/relationship.c | 8 ++++----
objects/GRAFCET/step.c | 6 +++---
objects/flowchart/parallelogram.c | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/objects/ER/relationship.c b/objects/ER/relationship.c
index e5899d7..ebada8a 100644
--- a/objects/ER/relationship.c
+++ b/objects/ER/relationship.c
@@ -360,7 +360,7 @@ relationship_update_data(Relationship *relationship)
connpoint_update(&relationship->connections[0],
elem->corner.x,
elem->corner.y + elem->height / 2.0,
- DIR_WEST|DIR_NORTH|DIR_SOUTH);
+ DIR_WEST);
connpoint_update(&relationship->connections[1],
elem->corner.x + elem->width / 4.0,
@@ -370,7 +370,7 @@ relationship_update_data(Relationship *relationship)
connpoint_update(&relationship->connections[2],
elem->corner.x + elem->width / 2.0,
elem->corner.y,
- DIR_NORTH|DIR_EAST|DIR_WEST);
+ DIR_NORTH);
connpoint_update(&relationship->connections[3],
elem->corner.x + 3.0 * elem->width / 4.0,
@@ -380,7 +380,7 @@ relationship_update_data(Relationship *relationship)
connpoint_update(&relationship->connections[4],
elem->corner.x + elem->width,
elem->corner.y + elem->height / 2.0,
- DIR_EAST|DIR_NORTH|DIR_SOUTH);
+ DIR_EAST);
connpoint_update(&relationship->connections[5],
elem->corner.x + 3.0 * elem->width / 4.0,
@@ -390,7 +390,7 @@ relationship_update_data(Relationship *relationship)
connpoint_update(&relationship->connections[6],
elem->corner.x + elem->width / 2.0,
elem->corner.y + elem->height,
- DIR_SOUTH|DIR_EAST|DIR_WEST);
+ DIR_SOUTH);
connpoint_update(&relationship->connections[7],
elem->corner.x + elem->width / 4.0,
diff --git a/objects/GRAFCET/step.c b/objects/GRAFCET/step.c
index 4c4019f..c14629e 100644
--- a/objects/GRAFCET/step.c
+++ b/objects/GRAFCET/step.c
@@ -454,13 +454,13 @@ step_update_data(Step *step)
/* Update connections: */
step->connections[0].pos = step->A;
- step->connections[0].directions = DIR_EAST|DIR_WEST;
+ step->connections[0].directions = DIR_NORTH;
step->connections[1].pos = step->D;
- step->connections[1].directions = DIR_EAST|DIR_WEST;
+ step->connections[1].directions = DIR_SOUTH;
step->connections[2].pos = step->Z;
step->connections[2].directions = DIR_EAST;
step->connections[3].pos = step->H;
- step->connections[3].directions = DIR_ALL;
+ step->connections[3].directions = DIR_WEST;
/* recalc the bounding box : */
if ((step->type == STEP_INITIAL) || (step->type == STEP_SUBPCALL)) {
diff --git a/objects/flowchart/parallelogram.c b/objects/flowchart/parallelogram.c
index c7e20b1..0925f68 100644
--- a/objects/flowchart/parallelogram.c
+++ b/objects/flowchart/parallelogram.c
@@ -486,7 +486,7 @@ pgram_update_data(Pgram *pgram, AnchorShape horiz, AnchorShape vert)
connpoint_update(&pgram->connections[8],
top_left + width + 2.0 * offs,
elem->corner.y + elem->height / 2.0,
- DIR_WEST);
+ DIR_EAST);
connpoint_update(&pgram->connections[9],
top_left + 3.0 * offs,
elem->corner.y + elem->height * 3.0 / 4.0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]