summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-10-17 21:41:54 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-10-17 21:41:54 (GMT)
commitd4c5d46f37e14bed896bc754b66c9d6232951bc4 (patch)
tree6fc7442f2b7e413fccb17b1c365ecb7e2590296f /generic/tkScale.c
parentdb416595ee9cf32e1efe2a2674679870567d3e3b (diff)
downloadtk-d4c5d46f37e14bed896bc754b66c9d6232951bc4.zip
tk-d4c5d46f37e14bed896bc754b66c9d6232951bc4.tar.gz
tk-d4c5d46f37e14bed896bc754b66c9d6232951bc4.tar.bz2
whitespace cleaning
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r--generic/tkScale.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c
index 94e6250..12973b2 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkScale.c,v 1.19 2005/10/17 21:39:45 dkf Exp $
+ * RCS: @(#) $Id: tkScale.c,v 1.20 2005/10/17 21:41:54 dkf Exp $
*/
#include "tkPort.h"
@@ -632,8 +632,8 @@ ConfigureScale(
*/
if ((scalePtr->tickInterval < 0)
- ^ ((scalePtr->toValue - scalePtr->fromValue) < 0)) {
- scalePtr->tickInterval = -scalePtr->tickInterval;
+ ^ ((scalePtr->toValue - scalePtr->fromValue) < 0)) {
+ scalePtr->tickInterval = -scalePtr->tickInterval;
}
ComputeFormat(scalePtr);
@@ -807,7 +807,7 @@ ComputeFormat(
numDigits = scalePtr->digits;
if (numDigits <= 0) {
- if (scalePtr->resolution > 0) {
+ if (scalePtr->resolution > 0) {
/*
* A resolution was specified for the scale, so just use it.
*/
@@ -1404,7 +1404,7 @@ TkScaleValueToPixel(
y = 0;
} else {
y = (int) ((value - scalePtr->fromValue) * pixelRange
- / valueRange + 0.5);
+ / valueRange + 0.5);
if (y < 0) {
y = 0;
} else if (y > pixelRange) {