Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix [Bug 2328657] by explicitly excluding hacky zero-char chunks from intersection computation. Might deserve generalization to other tests. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6c007ba1017f6fa7bb82da99495af920 |
User & Date: | ferrieux 2009-07-20 23:29:05 |
Context
2009-07-21
| ||
15:16 | Corrected drawing of rotated underlines. [Bug 2356057] check-in: a8d13f49 user: dkf tags: trunk | |
2009-07-20
| ||
23:29 | Fix [Bug 2328657] by explicitly excluding hacky zero-char chunks from intersection computation. Might deserve generalization to other tests. check-in: 6c007ba1 user: ferrieux tags: trunk | |
23:08 | More fixes for [Bug 2824378] check-in: ee7271d0 user: dkf tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2009-07-20 Donal K. Fellows <[email protected]> * tests/clipboard.test (clipboard-6.2): [Bug 2824378]: Corrected result of test in light of changes to binary selection retrieval. 2009-07-18 Donal K. Fellows <[email protected]> | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 2009-07-21 Alexandre Ferrieux <[email protected]> * generic/tkFont.c: Fix [Bug 2328657] by explicitly excluding hacky zero-char chunks from intersection computation. Might deserve generalization to other tests. 2009-07-20 Donal K. Fellows <[email protected]> * tests/clipboard.test (clipboard-6.2): [Bug 2824378]: Corrected result of test in light of changes to binary selection retrieval. 2009-07-18 Donal K. Fellows <[email protected]> |
︙ | ︙ |
Changes to generic/tkFont.c.
1 2 3 4 5 6 7 8 9 10 11 12 | /* * tkFont.c -- * * This file maintains a database of fonts for the Tk toolkit. It also * provides several utility functions for measuring and displaying text. * * Copyright (c) 1990-1994 The Regents of the University of California. * Copyright (c) 1994-1998 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | /* * tkFont.c -- * * This file maintains a database of fonts for the Tk toolkit. It also * provides several utility functions for measuring and displaying text. * * Copyright (c) 1990-1994 The Regents of the University of California. * Copyright (c) 1994-1998 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * * RCS: @(#) $Id: tkFont.c,v 1.55 2009/07/20 23:29:05 ferrieux Exp $ */ #include "tkInt.h" #include "tkFont.h" #define ROUND16(x) ((short)((x) + 0.5)) |
︙ | ︙ | |||
2892 2893 2894 2895 2896 2897 2898 | left = x; top = y; right = x + width; bottom = y + height; result = 0; for (i = 0; i < layoutPtr->numChunks; i++) { | | | | > | 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 | left = x; top = y; right = x + width; bottom = y + height; result = 0; for (i = 0; i < layoutPtr->numChunks; i++) { if ((chunkPtr->start[0] == '\n') || (chunkPtr->numBytes==0)) { /* * Newline characters and empty chunks are not counted when * computing area intersection (but tab characters would still be * considered). */ chunkPtr++; continue; } x1 = chunkPtr->x; |
︙ | ︙ |