Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Alexey Ignatenko
|
Jun 25, 2004 - 6:02 AM
|
There is a fatal misprint (?) bug in implementation of ExtPageContainerWnd::PageRemove (prof-uis version 2.25) (line 1749) if( nLastIndex > nCount ) nLastIndex = nCount - 1; ASSERT( nLastIndex >= nIndex ); nCount is a number of elements to remove. And it is compared with the index of the last element to remove. Therefore, it does not work at all, usually assigning nLastIndex equal to 0. Most probably, this code checks if the index of the last element to remove exceeds the number of elements in the list. If, so it should be like this: if( nLastIndex > nPageCount ) nLastIndex = nPageCount - 1; ASSERT( nLastIndex >= nIndex ); After this correction, page removal works quite well.
|
|
Technical Support
|
Jun 29, 2004 - 6:37 AM
|
Dear Alexey,
Yes, this was a bug (typo). Thank you very much!
|
|