Opened 13 years ago

Closed 13 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 by martinl, 13 years ago

Keywords: wingrass added

comment:2 by annakrat, 13 years ago

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

Anna

comment:3 by martinl, 13 years ago

Cc: martinl added

in reply to:  2 comment:4 by martinl, 13 years ago

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 by annakrat, 13 years ago

Resolution: fixed
Status: newclosed

backported in r50475, r50476

comment:6 by martinl, 13 years ago

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 by martinl, 13 years ago

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

comment:8 by annakrat, 13 years ago

r50508, could you confirm it before backport?

Thanks, Anna

in reply to:  8 comment:9 by martinl, 13 years ago

Replying to annakrat:

r50508, could you confirm it before backport?

seems to work.

comment:10 by annakrat, 13 years ago

Resolution: fixed
Status: newclosed

Backported in r50518, r50519.

Note: See TracTickets for help on using tickets.