summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvArc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvArc.c b/generic/tkCanvArc.c
index 26b62e7..5ac7961 100644
--- a/generic/tkCanvArc.c
+++ b/generic/tkCanvArc.c
@@ -545,7 +545,7 @@ ComputeArcBbox(canvas, arcPtr)
TkIncludePoint((Tk_Item *) arcPtr, arcPtr->center2);
center[0] = (arcPtr->bbox[0] + arcPtr->bbox[2])/2;
center[1] = (arcPtr->bbox[1] + arcPtr->bbox[3])/2;
- if (arcPtr->style != arcUid) {
+ if (arcPtr->style == pieSliceUid) {
TkIncludePoint((Tk_Item *) arcPtr, center);
}