Spreadsheet: small fix

This commit is contained in:
Yorik van Havre 2014-03-29 16:49:06 -03:00
parent 924392346b
commit cdc516a7da

View File

@ -649,7 +649,11 @@ class SpreadsheetPropertyController:
obj.addProperty("App::PropertyString","Cell","Base","The cell that contains the value to apply to the property")
def execute(self,obj):
pass
if obj.Cell and obj.TargetObject and obj.TargetProperty and obj.InList:
sp = obj.InList[0]
import Draft
if Draft.getType(sp) == "Spreadsheet":
sp.Proxy.updateControlledProperties(obj.Cell)
def __getstate__(self):
return self.Type