aboutsummaryrefslogtreecommitdiff
path: root/generic/Reticle.c
diff options
context:
space:
mode:
authorlecoanet2006-08-29 08:57:21 +0000
committerlecoanet2006-08-29 08:57:21 +0000
commitee09ecbce14142cfeceac75c1ead2a6e92bb8d86 (patch)
tree352d4ee94b738eb31163763bf7acf21cf263b534 /generic/Reticle.c
parentcf87f3a2f26c1524e45df40f9df717c5dd4d7fff (diff)
downloadtkzinc-ee09ecbce14142cfeceac75c1ead2a6e92bb8d86.zip
tkzinc-ee09ecbce14142cfeceac75c1ead2a6e92bb8d86.tar.gz
tkzinc-ee09ecbce14142cfeceac75c1ead2a6e92bb8d86.tar.bz2
tkzinc-ee09ecbce14142cfeceac75c1ead2a6e92bb8d86.tar.xz
Fixed bug #50. The bounding box was incorrect. Values reported by bbox
were erroneous and drawing under X11/GDI was incorrect as a result.
Diffstat (limited to 'generic/Reticle.c')
-rw-r--r--generic/Reticle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/Reticle.c b/generic/Reticle.c
index 59e3cdc..0c7abe2 100644
--- a/generic/Reticle.c
+++ b/generic/Reticle.c
@@ -282,7 +282,7 @@ ComputeCoordinates(ZnItem item,
(reticle->num_circles - 1) * reticle->step_size_dev;
item->item_bounding_box.orig.x = reticle->dev.x - half_width;
item->item_bounding_box.orig.y = reticle->dev.y - half_width;
- item->item_bounding_box.corner.x = item->item_bounding_box.orig.y + (2 * half_width);
+ item->item_bounding_box.corner.x = item->item_bounding_box.orig.x + (2 * half_width);
item->item_bounding_box.corner.y = item->item_bounding_box.orig.y + (2 * half_width);
}
}