summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 5b46027..01eae00 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -1668,8 +1668,8 @@ ParseSubcommandOptions(
goto oneValueRequired;
}
*optIndexPtr = ++index;
- optPtr->background = Tk_GetColor(interp, Tk_MainWindow(interp),
- Tcl_GetString(objv[index]));
+ optPtr->background = Tk_AllocColorFromObj(interp, Tk_MainWindow(interp),
+ objv[index]);
if (!optPtr->background) {
return TCL_ERROR;
}