summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.fossil-settings/ignore-glob3
-rw-r--r--generic/tkCanvUtil.c8
-rw-r--r--tests/text.test4
3 files changed, 11 insertions, 4 deletions
diff --git a/.fossil-settings/ignore-glob b/.fossil-settings/ignore-glob
index e404f52..e8f5bbb 100644
--- a/.fossil-settings/ignore-glob
+++ b/.fossil-settings/ignore-glob
@@ -6,6 +6,7 @@
*.lib
*.o
*.obj
+*.pdb
*.res
*.sl
*.so
@@ -18,4 +19,6 @@
*/tktest*
*/versions.vc
doc/man.macros
+win/Debug_VC*
+win/Release_VC*
unix/tk.pc
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c
index cbbc2b4..09ce98c 100644
--- a/generic/tkCanvUtil.c
+++ b/generic/tkCanvUtil.c
@@ -1136,7 +1136,9 @@ Tk_ConfigOutlineGC(
if (mask && (dash->number != 0)) {
gcValues->line_style = LineOnOffDash;
gcValues->dash_offset = outline->offset;
- if (dash->number > 0) {
+ if ((unsigned int)ABS(dash->number) > sizeof(char *)) {
+ gcValues->dashes = dash->pattern.pt[0];
+ } else if (dash->number != 0) {
gcValues->dashes = dash->pattern.array[0];
} else {
gcValues->dashes = (char) (4 * width + 0.5);
@@ -1340,7 +1342,9 @@ Tk_ResetOutlineGC(
if ((dash->number > 2) || (dash->number < -1) || (dash->number==2 &&
(dash->pattern.array[0] != dash->pattern.array[1])) ||
((dash->number == -1) && (dash->pattern.array[0] != ','))) {
- if (dash->number > 0) {
+ if ((unsigned int)ABS(dash->number) > sizeof(char *)) {
+ dashList = dash->pattern.pt[0];
+ } else if (dash->number != 0) {
dashList = dash->pattern.array[0];
} else {
dashList = (char) (4 * width + 0.5);
diff --git a/tests/text.test b/tests/text.test
index 3e5b4b6..8ba177f 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -922,9 +922,9 @@ test text-2.8 {Tk_TextCmd procedure} -constraints {
.t tag cget sel -relief
} -cleanup {
destroy .t
-} -result {solid}
+} -result {flat}
test text-2.9 {Tk_TextCmd procedure} -constraints {
- unix
+ unix notAqua
} -body {
catch {destroy .t}
text .t