summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-04-26 22:02:59 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-04-26 22:02:59 (GMT)
commitc31fa24c60b3a3c8a9d5687f627f660d3649fdc0 (patch)
tree6707336a7323804e861e229e6001d0702db2bae6 /generic/ttk
parent35782df88f307dee00acfea69fa902c13291bc14 (diff)
downloadtk-c31fa24c60b3a3c8a9d5687f627f660d3649fdc0.zip
tk-c31fa24c60b3a3c8a9d5687f627f660d3649fdc0.tar.gz
tk-c31fa24c60b3a3c8a9d5687f627f660d3649fdc0.tar.bz2
Write code more consistently with the rest of the ttkEntry.c file
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkEntry.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 148bc47..1ef2423 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -1651,14 +1651,13 @@ static int EntryXViewCommand(
void *recordPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
Entry *entryPtr = recordPtr;
- WidgetCore *corePtr = recordPtr;
/*
* Ensure that the scroll info is up-to-date before a scrolling command.
*/
- if (corePtr->flags & REDISPLAY_PENDING) {
- EntryDoLayout(recordPtr);
+ if (entryPtr->core.flags & REDISPLAY_PENDING) {
+ EntryDoLayout(entryPtr);
}
if (objc == 3) {