From 823372bb76040aa7a830c075b4bd49d850f0c83a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Thu, 2 Feb 2012 15:51:49 +0000 Subject: [PATCH] [merge from 6.7] Fixed #8315 - take leap years into account in focusNext/PreviousYear svn changeset:22864/svn branch:6.8 --- src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java index 96ca818bb4..513c94ef98 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java @@ -628,6 +628,7 @@ public class VCalendarPanel extends FocusableFlexTable implements private void focusPreviousYear(int years) { int currentMonth = focusedDate.getMonth(); focusedDate.setYear(focusedDate.getYear() - years); + displayedMonth.setYear(displayedMonth.getYear() - years); /* * If the focused date was a leap day (Feb 29), the new date becomes Mar * 1 if the new year is not also a leap year. Set it to Feb 28 instead. -- 2.39.5