Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
All4Gis committed Oct 9, 2019
2 parents bbb662d + 6788cf8 commit 5531696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/manager/QgsMultiplexor.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ def CreateMISB(self):
# targetWidth = 0.0
targetWidth = 2.0 * slantRange * tan(radians(HFOV / 2.0))

_bytes = float_to_bytes(round(targetWidth, 4), _domain22, _range22)
try:
_bytes = float_to_bytes(round(targetWidth, 4), _domain22, _range22)
except Exception:
_bytes = float_to_bytes(round(0.0, 4), _domain22, _range22)

_len = int_to_bytes(len(_bytes))
_bytes = _key22 + _len + _bytes
sizeTotal += len(_bytes)
Expand Down

0 comments on commit 5531696

Please sign in to comment.