Skip to content

Commit

Permalink
Re #6151 Fix issue with output values
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Dec 20, 2012
1 parent 493e722 commit 3b4f7f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ def __init__(self, parent=None):
if state is not None:
self.set_state(state)
else:
self.set_state(SampleData())
m = SampleData()
if self._settings.api2: m.PYTHON_API=2
self.set_state(m)

self._last_direct_state = None
self._last_spreader_state = None
Expand Down Expand Up @@ -299,6 +301,7 @@ def get_state(self):
Returns an object with the state of the interface
"""
m = SampleData()
if self._settings.api2: m.PYTHON_API=2

m.transmission = util._check_and_get_float_line_edit(self._content.transmission_edit)
m.transmission_spread = util._check_and_get_float_line_edit(self._content.dtransmission_edit)
Expand Down

0 comments on commit 3b4f7f0

Please sign in to comment.