Skip to content

Commit

Permalink
Fix for bug [126d071408].
Browse files Browse the repository at this point in the history
  • Loading branch information
csaba committed Jan 10, 2025
1 parent e0ec65f commit 8ba06a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generic/ttk/ttkElements.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,12 +1445,14 @@ static void SliderElementDraw(
case TTK_ORIENT_HORIZONTAL:
XFillRectangle(disp, d, gc,
mainInfoPtr->troughInnerX, mainInfoPtr->troughInnerY,
b.x + dim/2 - 1, mainInfoPtr->troughInnerHeight);
b.x + dim/2 - mainInfoPtr->troughInnerX,
mainInfoPtr->troughInnerHeight);
break;
case TTK_ORIENT_VERTICAL:
XFillRectangle(disp, d, gc,
mainInfoPtr->troughInnerX, mainInfoPtr->troughInnerY,
mainInfoPtr->troughInnerWidth, b.y + dim/2 - 1);
mainInfoPtr->troughInnerWidth,
b.y + dim/2 - mainInfoPtr->troughInnerY);
break;
}
}
Expand Down

0 comments on commit 8ba06a3

Please sign in to comment.