Git commit 8dbabe1b14951092bcb2cfa7c9d38ab0029c72d3 by Khudyakov Alexey, on behalf of Alexey Khudyakov. Committed on 20/02/2011 at 18:03. Pushed by khudyakov into branch '4.6'. KCalendarSystem could figure out year on its own. Besides code compiles with kdelibs4.4 svn path=/trunk/KDE/kdeedu/kstars/; revision=1221819 M +1 -1 kstars/widgets/genericcalendarwidget.cpp http://commits.kde.org/kstars/8dbabe1b14951092bcb2cfa7c9d38ab0029c72d3 diff --git a/kstars/widgets/genericcalendarwidget.cpp b/kstars/widgets/genericcalendarwidget.cpp index ef40899..6bbb5cb 100644 --- a/kstars/widgets/genericcalendarwidget.cpp +++ b/kstars/widgets/genericcalendarwidget.cpp @@ -80,7 +80,7 @@ const KCalendarSystem *GenericCalendarWidget::calendar() const { void GenericCalendarWidget::populateMonthNames() { // Populate the combobox with month names -- can change by year / calendar type selectMonth->clear(); - for ( int m = 1; m <= calendar()->monthsInYear( calendar()->year( date() ) ); m++ ) { + for ( int m = 1; m <= calendar()->monthsInYear( date() ); m++ ) { selectMonth->addItem( calendar()->monthName( m, calendar()->year( date() ) ) ); } }