diff options
author | hobbs <hobbs> | 2000-02-01 11:41:09 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-02-01 11:41:09 (GMT) |
commit | 72b28710ff138c84a191a1e44c2207ba58522870 (patch) | |
tree | 462f9d19d2583612b9c3969de777574a4889f209 /generic/tkCanvArc.c | |
parent | a7ac3c95aefe0dcd187bf66e8d86ee148193f397 (diff) | |
download | tk-72b28710ff138c84a191a1e44c2207ba58522870.zip tk-72b28710ff138c84a191a1e44c2207ba58522870.tar.gz tk-72b28710ff138c84a191a1e44c2207ba58522870.tar.bz2 |
* generic/tkRectOval.c (ConfigureRectOval):
* generic/tkCanvLine.c (ConfigureLine):
* generic/tkCanvPoly.c (ConfigurePoly):
* generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for
negative dash values [Bug: 4104]
* generic/tkScale.c (TkRoundToResolution): fixed incorrect
assumption that (N+1)*delta = N*delta + delta with floating point
math [Bug: 3689, 4099]
(DestroyScale) Fixed check for cancelling TkpDisplayScale (was
REDRAW_ALL, is now REDRAW_PENDING)
Diffstat (limited to 'generic/tkCanvArc.c')
-rw-r--r-- | generic/tkCanvArc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkCanvArc.c b/generic/tkCanvArc.c index 1d0934e..f90061f 100644 --- a/generic/tkCanvArc.c +++ b/generic/tkCanvArc.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvArc.c,v 1.7 1999/12/14 06:52:25 hobbs Exp $ + * RCS: @(#) $Id: tkCanvArc.c,v 1.8 2000/02/01 11:41:09 hobbs Exp $ */ #include <stdio.h> @@ -482,7 +482,7 @@ ConfigureArc(interp, canvas, itemPtr, argc, argv, flags) */ if (arcPtr->outline.activeWidth > arcPtr->outline.width || - arcPtr->outline.activeDash.number > 0 || + arcPtr->outline.activeDash.number != 0 || arcPtr->outline.activeColor != NULL || arcPtr->outline.activeStipple != None || arcPtr->activeFillColor != NULL || @@ -842,17 +842,17 @@ DisplayArc(canvas, itemPtr, display, drawable, x, y, width, height) if (arcPtr->outline.activeWidth>lineWidth) { lineWidth = arcPtr->outline.activeWidth; } - if (arcPtr->outline.activeDash.number>0) { + if (arcPtr->outline.activeDash.number != 0) { dashnumber = arcPtr->outline.activeDash.number; } if (arcPtr->activeFillStipple != None) { stipple = arcPtr->activeFillStipple; } } else if (state==TK_STATE_DISABLED) { - if (arcPtr->outline.disabledWidth>0) { + if (arcPtr->outline.disabledWidth > 0) { lineWidth = arcPtr->outline.disabledWidth; } - if (arcPtr->outline.disabledDash.number>0) { + if (arcPtr->outline.disabledDash.number != 0) { dashnumber = arcPtr->outline.disabledDash.number; } if (arcPtr->disabledFillStipple != None) { @@ -931,7 +931,7 @@ DisplayArc(canvas, itemPtr, display, drawable, x, y, width, height) * the outline is dashed, because then polygons don't work. */ - if (lineWidth < 1.5 || dashnumber > 0) { + if (lineWidth < 1.5 || dashnumber != 0) { Tk_CanvasDrawableCoords(canvas, arcPtr->center1[0], arcPtr->center1[1], &x1, &y1); Tk_CanvasDrawableCoords(canvas, arcPtr->center2[0], |