Package: zim / 0.62-3

0006-Improved-behaviour-for-the-calendar-part-3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?Rapha=C3=ABl_Hertzog?= <hertzog@debian.org>
Date: Wed, 22 Oct 2014 10:15:59 +0200
Subject: Improved behaviour for the calendar (part 3)

Third part of the fix for the Debian bug: Fix bug when switching month in
calendar widget.

Bug-Debian: http://bugs.debian.org/765745
Origin: uptream, http://bazaar.launchpad.net/~jaap.karssenberg/zim/pyzim/revision/747
---
 zim/plugins/calendar.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/zim/plugins/calendar.py b/zim/plugins/calendar.py
index 0236c75..8d9f0a9 100644
--- a/zim/plugins/calendar.py
+++ b/zim/plugins/calendar.py
@@ -366,6 +366,7 @@ class Calendar(gtk.Calendar):
 	def get_date(self):
 		'''Get the datetime object for the selected date'''
 		year, month, day = gtk.Calendar.get_date(self)
+		if day == 0: day = 1
 		return datetime.date(year, month + 1, day)
 
 # Need to register classes defining gobject signals