summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layoutcell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/layoutcell.cpp')
-rw-r--r--src/gui/widgets/layoutcell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/layoutcell.cpp b/src/gui/widgets/layoutcell.cpp
index 2ab016ca4..1e46c1ca7 100644
--- a/src/gui/widgets/layoutcell.cpp
+++ b/src/gui/widgets/layoutcell.cpp
@@ -43,7 +43,11 @@ LayoutArray &LayoutCell::getArray()
if (mType == WIDGET)
return tempArray;
if (mType == ARRAY)
+ {
+ if (!mArray)
+ return tempArray;
return *mArray;
+ }
mArray = new LayoutArray;
mType = ARRAY;