diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-20 14:02:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-20 14:02:42 (GMT) |
commit | 22a9bc4bd75e5479537768884f7ead683e5e51d9 (patch) | |
tree | 0fb2c216b44e767e897680b06cd4c0b8f7549b6c /generic/tkFont.c | |
parent | 06b5ea26625d50fb3cf48c115b4efa0115f20d9e (diff) | |
download | tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.zip tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.tar.gz tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.tar.bz2 |
One more use of TkNewIndexObj() macro. More code cleanup
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r-- | generic/tkFont.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c index d2aa6d2..d132c0f 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -2738,7 +2738,7 @@ Tk_CharBbox( * index, if non-NULL. */ { TextLayout *layoutPtr = (TextLayout *) layout; - LayoutChunk *chunkPtr; + LayoutChunk *chunkPtr = layoutPtr->chunks; int i, x = 0, w; Tk_Font tkfont; TkFont *fontPtr; @@ -2748,7 +2748,6 @@ Tk_CharBbox( return 0; } - chunkPtr = layoutPtr->chunks; tkfont = layoutPtr->tkfont; fontPtr = (TkFont *) tkfont; |