Opened 8 years ago

Closed 8 years ago

#1547 closed defect (fixed)

wxGUI Cartographic Composer: division by zero

Reported by: martinl Owned by: annakrat
Priority: major Milestone: 6.4.2
Component: wxGUI Version: unspecified
Keywords: cartographic composer, psmap, wingrass Cc: grass-dev@…
CPU: Unspecified Platform: MSWindows XP

Description

When starting Cartographic Composer in winGRASS (ie. without preview functionality) I am getting this error

raceback (most recent call last):
  File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1679, in
OnSize

self.ZoomAll()
  File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1492, in
ZoomAll

zoomFactor, view = self.ComputeZoom(zoomP)
  File "C:\Program Files (x86)\GRASS
6.4.2svn\etc\wxpython\gui_modules\psmap.py", line 1409, in
ComputeZoom

zoomFactor = 1/max(rW/cW, rH/cH)
ZeroDivisionError
:
float division by zero

Change History (10)

comment:1 Changed 8 years ago by martinl

Keywords: wingrass added

comment:2 Changed 8 years ago by annakrat

Please try r50474 (6.4), I am not able to test it on windows.

Anna

comment:3 Changed 8 years ago by martinl

Cc: martinl added

comment:4 in reply to:  2 Changed 8 years ago by martinl

Milestone: 6.4.26.5.0

Replying to annakrat:

Please try r50474 (6.4), I am not able to test it on windows.

seems to work. Before closing this ticket, please backport fix to other active branches.

comment:5 Changed 8 years ago by annakrat

Resolution: fixed
Status: newclosed

backported in r50475, r50476

comment:6 Changed 8 years ago by martinl

Milestone: 6.5.06.4.2
Resolution: fixed
Status: closedreopened

Similar error

Traceback (most recent call last):
  File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1682, in OnSize

self.ZoomAll()
  File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1495, in ZoomAll

zoomFactor, view = self.ComputeZoom(zoomP)
  File "C:\OSGeo4W_dev\apps\grass\grass-6.4.2svn\etc\wxpytho
n\gui_modules\psmap.py", line 1422, in ComputeZoom

if rW/rH > cW/cH:
ZeroDivisionError
:
float division by zero

comment:7 Changed 8 years ago by martinl

Cc: grass-dev@… added; martinl removed
Owner: changed from grass-dev@… to annakrat
Status: reopenednew

comment:8 Changed 8 years ago by annakrat

r50508, could you confirm it before backport?

Thanks, Anna

comment:9 in reply to:  8 Changed 8 years ago by martinl

Replying to annakrat:

r50508, could you confirm it before backport?

seems to work.

comment:10 Changed 8 years ago by annakrat

Resolution: fixed
Status: newclosed

Backported in r50518, r50519.

Note: See TracTickets for help on using tickets.