1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 <2007> 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: A patch for medm |
From: | Andrew Johnson <[email protected]> |
To: | Kate Feng <[email protected]> |
Cc: | [email protected] |
Date: | Thu, 06 Dec 2007 11:49:16 -0600 |
MEDM version 3.03 :
When I defined only three states for a mbbo record, the following warning message will pop up whenever CA is connected.
menuUpdateValueCb: Got state 3. Only have strings for 3 states (starting at 0). Kate:Mset_formatmode
A minor patch stops the warining message:
diff -c -u medmMenu.c.orig medmMenu.c
--- medmMenu.c.orig Tue Jun 10 12:13:27 2003 +++ medmMenu.c Thu Nov 29 07:24:48 2007 @@ -510,7 +510,7 @@ XmNnumChildren,&numChildren, NULL); i = (int) pr->value; - if((i >=0) && (i < (int) numChildren)) { + if((i >=0) && (i <= (int) numChildren)) {
- Andrew -- When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong. -- Arthur C. Clarke