Skip to content
Snippets Groups Projects
Commit 897a875a authored by Matthias Puchner's avatar Matthias Puchner
Browse files

assert

parent b9005e44
No related branches found
No related tags found
1 merge request!490More refactoring of material handling
...@@ -41,11 +41,13 @@ void ItemWithMaterial::setMaterialUndefined() ...@@ -41,11 +41,13 @@ void ItemWithMaterial::setMaterialUndefined()
QColor ItemWithMaterial::materialColor() const QColor ItemWithMaterial::materialColor() const
{ {
ASSERT(materialItem());
return materialItem()->color(); return materialItem()->color();
} }
QString ItemWithMaterial::materialName() const QString ItemWithMaterial::materialName() const
{ {
ASSERT(materialItem());
return materialItem()->materialName(); return materialItem()->materialName();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment