[saods9] 01/02: Replace "lime" color that is unknown in tk8.5
Ole Streicher
olebole-guest at alioth.debian.org
Thu Aug 1 19:53:51 UTC 2013
This is an automated email from the git hooks/post-receive script.
olebole-guest pushed a commit to branch debian
in repository saods9.
commit 7df2462dc2e0774f263f5454ff65014874b07c20
Author: Ole Streicher <debian at liska.ath.cx>
Date: Thu Aug 1 21:46:00 2013 +0200
Replace "lime" color that is unknown in tk8.5
---
debian/patches/saotk_add_psscale.patch | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/patches/saotk_add_psscale.patch b/debian/patches/saotk_add_psscale.patch
index 80a971e..439594b 100644
--- a/debian/patches/saotk_add_psscale.patch
+++ b/debian/patches/saotk_add_psscale.patch
@@ -14,6 +14,15 @@ Description: The original code from ds9 uses a patched postscript code to allow
// Tk Canvas Widget Functions Declaration
int WidgetConfigProc(Tcl_Interp* interp, Tk_Canvas canvas, Tk_Item* item,
+@@ -558,7 +560,7 @@
+ // starting with tk8.6, colors are W3C based, not X11
+ XColor* cc= NULL;
+ if (!strncmp(str,"green",5) || !strncmp(str,"GREEN",5))
+- cc = Tk_GetColor(interp, tkwin, "lime");
++ cc = Tk_GetColor(interp, tkwin, "#32CD32");
+ else
+ cc = Tk_GetColor(interp, tkwin, str);
+
--- a/saotk/util/tkpostscript.h
+++ b/saotk/util/tkpostscript.h
@@ -13,7 +13,7 @@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/saods9.git
More information about the debian-science-commits
mailing list