summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/gradient_blocks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/gradient_blocks.py b/lib/extensions/gradient_blocks.py
index d0eca4a4..68e1e8e9 100644
--- a/lib/extensions/gradient_blocks.py
+++ b/lib/extensions/gradient_blocks.py
@@ -107,7 +107,7 @@ class GradientBlocks(CommandsExtension):
def _add_block_commands(self, block, previous_element):
current = FillStitch(block)
previous = FillStitch(previous_element)
- if previous.shape.is_empty:
+ if previous.shape.is_empty or current.shape.is_empty:
return
nearest = nearest_points(current.shape, previous.shape)
pos_current = self._get_command_postion(current, nearest[0])