summaryrefslogtreecommitdiffstats
path: root/generic/tkTreeDisplay.c
diff options
context:
space:
mode:
authortreectrl <treectrl>2005-09-28 21:56:10 (GMT)
committertreectrl <treectrl>2005-09-28 21:56:10 (GMT)
commit5ebebb12e0afd9a03616cae62e41a29b5b9063a5 (patch)
tree280eadfffcb794bec20d67c0331bf7b86544eb99 /generic/tkTreeDisplay.c
parente8e813312eb73fdc66a0362b58cf0b959fccc059 (diff)
downloadtktreectrl-5ebebb12e0afd9a03616cae62e41a29b5b9063a5.zip
tktreectrl-5ebebb12e0afd9a03616cae62e41a29b5b9063a5.tar.gz
tktreectrl-5ebebb12e0afd9a03616cae62e41a29b5b9063a5.tar.bz2
Format fix with braces.
Diffstat (limited to 'generic/tkTreeDisplay.c')
-rw-r--r--generic/tkTreeDisplay.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/generic/tkTreeDisplay.c b/generic/tkTreeDisplay.c
index 9f77e99..911e2fa 100644
--- a/generic/tkTreeDisplay.c
+++ b/generic/tkTreeDisplay.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 2002-2005 Tim Baker
*
- * RCS: @(#) $Id: tkTreeDisplay.c,v 1.34 2005/09/21 00:04:36 treectrl Exp $
+ * RCS: @(#) $Id: tkTreeDisplay.c,v 1.35 2005/09/28 21:56:10 treectrl Exp $
*/
#include "tkTreeCtrl.h"
@@ -1424,8 +1424,7 @@ B_XviewCmd(
Tree_GetScrollFractionsX(tree, fractions);
sprintf(buf, "%g %g", fractions[0], fractions[1]);
Tcl_SetResult(interp, buf, TCL_VOLATILE);
- }
- else {
+ } else {
int count, index = 0, indexMax, offset, type;
double fraction;
int visWidth = Tk_Width(tree->tkwin) - tree->inset * 2;
@@ -1445,11 +1444,10 @@ B_XviewCmd(
offset = Increment_ToOffsetX(tree, indexMax);
}
- /* Add some fake content to bottom */
+ /* Add some fake content to right */
if (offset + visWidth > totWidth)
totWidth = offset + visWidth;
- }
- else {
+ } else {
indexMax = Increment_FindX(tree, totWidth);
visWidth = 1;
}