summaryrefslogtreecommitdiffstats
path: root/src/box3d-side.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/box3d-side.cpp')
-rw-r--r--src/box3d-side.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/box3d-side.cpp b/src/box3d-side.cpp
index 0c74a8f7e..fdbe33222 100644
--- a/src/box3d-side.cpp
+++ b/src/box3d-side.cpp
@@ -217,7 +217,7 @@ void
box3d_side_set_shape (SPShape *shape)
{
Box3DSide *side = SP_BOX3D_SIDE (shape);
- if (!side->document->root) {
+ if (!side->document->getRoot()) {
// avoid a warning caused by sp_document_height() (which is called from sp_item_i2d_affine() below)
// when reading a file containing 3D boxes
return;