--- a/src/glCompiler.cc Wed Nov 05 03:49:29 2014 +0200 +++ b/src/glCompiler.cc Wed Nov 05 17:48:11 2014 +0200 @@ -283,10 +283,14 @@ { it = m_objectInfo.erase (it); } - elif (it.key().toStrongRef()->document() == CurrentDocument() - and not it.key().toStrongRef()->isHidden()) + else { - vbodata += it->data[vbonum]; + if (it.key().toStrongRef()->document() == CurrentDocument() + and not it.key().toStrongRef()->isHidden()) + { + vbodata += it->data[vbonum]; + } + ++it; } }