Commit 3020a6c3 authored by Thomas Zander's avatar Thomas Zander

Fix crash when there are no children and we are repainted

svn path=/trunk/koffice/; revision=551836
parent 9ff01802
......@@ -183,8 +183,9 @@ void KoShapeContainer::ChildrenData::containerChanged(KoShapeContainer *containe
void KoShapeContainer::repaint() const {
KoShape::repaint();
foreach ( KoShape *shape, m_children->iterator())
shape->repaint();
if(m_children)
foreach ( KoShape *shape, m_children->iterator())
shape->repaint();
}
QList<KoShape*> KoShapeContainer::iterator() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment