summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-08 20:28:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-08 20:28:19 (GMT)
commit3588e9bb50fc4405a0c6d00631c2317b95f45257 (patch)
tree19316394432448d84d95a9069c57a13f7d7fed04 /generic/tkCanvLine.c
parentc7e041cfd4f24255e924362fb73214caaf51f5de (diff)
downloadtk-3588e9bb50fc4405a0c6d00631c2317b95f45257.zip
tk-3588e9bb50fc4405a0c6d00631c2317b95f45257.tar.gz
tk-3588e9bb50fc4405a0c6d00631c2317b95f45257.tar.bz2
Silence compiler warnings
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index a10ff55..8017829 100644
--- a/generic/tkCanvLine.c
+++ b/generic/tkCanvLine.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvLine.c,v 1.14 2004/01/13 02:06:00 davygrvy Exp $
+ * RCS: @(#) $Id: tkCanvLine.c,v 1.15 2004/06/08 20:28:19 dgp Exp $
*/
#include <stdio.h>
@@ -858,7 +858,6 @@ DisplayLine(canvas, itemPtr, display, drawable, x, y, width, height)
double linewidth;
int numPoints;
Tk_State state = itemPtr->state;
- Pixmap stipple = linePtr->outline.stipple;
if ((!linePtr->numPoints)||(linePtr->outline.gc==None)) {
return;
@@ -869,16 +868,10 @@ DisplayLine(canvas, itemPtr, display, drawable, x, y, width, height)
}
linewidth = linePtr->outline.width;
if (((TkCanvas *)canvas)->currentItemPtr == itemPtr) {
- if (linePtr->outline.activeStipple != None) {
- stipple = linePtr->outline.activeStipple;
- }
if (linePtr->outline.activeWidth != linewidth) {
linewidth = linePtr->outline.activeWidth;
}
} else if (state==TK_STATE_DISABLED) {
- if (linePtr->outline.disabledStipple != None) {
- stipple = linePtr->outline.disabledStipple;
- }
if (linePtr->outline.disabledWidth != linewidth) {
linewidth = linePtr->outline.disabledWidth;
}