0000545: Undo revolve causes crash illegal storage

This commit is contained in:
wmayer 2012-09-21 11:54:35 +02:00
parent aaaa7eb303
commit 08e6bc0e6a

View File

@ -1178,6 +1178,12 @@ SoBrepPointSet::SoBrepPointSet()
void SoBrepPointSet::GLRender(SoGLRenderAction *action)
{
const SoCoordinateElement* coords = SoCoordinateElement::getInstance(action->getState());
int num = coords->getNum() - this->startIndex.getValue();
if (num < 0) {
// Fixes: #0000545: Undo revolve causes crash 'illegal storage'
return;
}
if (this->selectionIndex.getNum() > 0)
renderSelection(action);
if (this->highlightIndex.getValue() >= 0)