From ab56fcba7f13e51b0e61434ab190ba9a82d263a0 Mon Sep 17 00:00:00 2001 From: "Nathan.Woodrow" Date: Fri, 21 Aug 2015 14:42:54 +1000 Subject: [PATCH] Fix form preview loading --- src/roam/api/featureform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roam/api/featureform.py b/src/roam/api/featureform.py index bcc82bef0..5451a8d8c 100644 --- a/src/roam/api/featureform.py +++ b/src/roam/api/featureform.py @@ -298,7 +298,7 @@ def bindvalues(self, values, update=False): utils.debug("Can't find control for field {}. Ignoring".format(field)) self.validateall() - if self.geomwidget: + if self.geomwidget and self.feature: self.geomwidget.set_geometry(self.feature.geometry()) def bind_feature(self, feature):