summaryrefslogtreecommitdiffstats
path: root/generic/tkScrollbar.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-31 14:39:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-31 14:39:04 (GMT)
commit25d454344e3782af50e4de2b30951409e349dc07 (patch)
tree6faf126294b1235b3307dcc394cab895489ceef6 /generic/tkScrollbar.c
parent1d84ebe142bb392f1d8c24f0bb90f6be02530c24 (diff)
downloadtk-25d454344e3782af50e4de2b30951409e349dc07.zip
tk-25d454344e3782af50e4de2b30951409e349dc07.tar.gz
tk-25d454344e3782af50e4de2b30951409e349dc07.tar.bz2
minor improvements to flag handling
Diffstat (limited to 'generic/tkScrollbar.c')
-rw-r--r--generic/tkScrollbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkScrollbar.c b/generic/tkScrollbar.c
index fb06093..2d91db6 100644
--- a/generic/tkScrollbar.c
+++ b/generic/tkScrollbar.c
@@ -687,10 +687,10 @@ void
TkScrollbarEventuallyRedraw(
TkScrollbar *scrollPtr) /* Information about widget. */
{
- if ((scrollPtr->tkwin == NULL) || (!Tk_IsMapped(scrollPtr->tkwin))) {
+ if ((scrollPtr->tkwin == NULL) || !Tk_IsMapped(scrollPtr->tkwin)) {
return;
}
- if ((scrollPtr->flags & REDRAW_PENDING) == 0) {
+ if (!(scrollPtr->flags & REDRAW_PENDING)) {
Tcl_DoWhenIdle(TkpDisplayScrollbar, scrollPtr);
scrollPtr->flags |= REDRAW_PENDING;
}