Skip to content

Commit

Permalink
Spreadsheet: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Mar 29, 2014
1 parent 9243923 commit cdc516a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Spreadsheet/Spreadsheet.py
Expand Up @@ -649,7 +649,11 @@ def __init__(self,obj):
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
Expand Down

0 comments on commit cdc516a

Please sign in to comment.