Nano77 / gdm3setup

An interface to configure GDM3, autologin options and change Shell theme
GNU General Public License v2.0
101 stars 29 forks source link

Divide by zero error on background change #22

Closed lePereT closed 7 years ago

lePereT commented 11 years ago

This happens when you try to change the background at 00:xx hours. I changed my system time and was then able to change it successfully :D

Running latest version (20130207-1) on Ubuntu 12.04 64-bit.

Traceback (most recent call last):
  File "/usr/bin/gdm3setup", line 328, in _Clicked
    self.Dialog = WallpaperSelectorDialog()
  File "/usr/bin/gdm3setup", line 295, in __init__
    self.Widget = WallpaperSelectorWidget()
  File "/usr/bin/gdm3setup", line 188, in __init__
    self.UpdatePixbuf(datetime.datetime.now().hour)
  File "/usr/bin/gdm3setup", line 269, in UpdatePixbuf
    intensity = ( value - self.TbStartTime[i] ) * 255 / (self.TbEndTime[i] - self.TbStartTime[i] )
ZeroDivisionError: integer division or modulo by zero