From: Jeffrey D. <ha...@us...> - 2003-12-23 01:06:19
|
Log Message: ----------- no idea Modified Files: -------------- /cvsroot/decaldev/source/DecalControls: Choice.cpp Revision Data ------------- Index: Choice.cpp =================================================================== RCS file: /cvsroot/decaldev/source/DecalControls/Choice.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Choice.cpp 26 Sep 2003 22:57:54 -0000 1.5 +++ Choice.cpp 23 Dec 2003 01:06:18 -0000 1.6 @@ -371,6 +371,10 @@ { _ASSERTE( newVal >= -1 ); //_ASSERTE( newVal < m_options.size() ); + //back out if out of bounds, don't error to prevent breaking vb plugs + //this should fix the crash on display bug + if (newVal >= m_options.size()) + return S_OK; if( newVal == m_nSelected ) return S_OK; |