Skip to content

Commit

Permalink
wxGUI g.gui.rlisetup: fix get rectangle sample units size (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed May 14, 2020
1 parent 4163bca commit ca13494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/rlisetup/wizard.py
Expand Up @@ -362,8 +362,8 @@ def _write_area(self, fil):
cl = float(self.CIR_CL) / float(self.rasterinfo['cols'])
rl = float(self.CIR_RL) / float(self.rasterinfo['rows'])
else:
cl = float(self.moving.width) / float(self.rasterinfo['cols'])
rl = float(self.moving.height) / float(self.rasterinfo['rows'])
cl = float(self.units.width) / float(self.rasterinfo['cols'])
rl = float(self.units.height) / float(self.rasterinfo['rows'])

fil.write("SAMPLEAREA -1|-1|%r|%r\n" % (rl, cl))
if self.units.distrtype == 'non_overlapping':
Expand Down

0 comments on commit ca13494

Please sign in to comment.