Commit 5610aa14 authored by Laurent Montel's avatar Laurent Montel 😁

Use variable otherwise loop is not useful

parent 6cb421d0
......@@ -129,7 +129,7 @@ void CalPrintYear::print(QPainter &p, int width, int height)
int maxdays = 1;
for (int i = 1; i < months; ++i) {
maxdays = qMax(maxdays, temp.daysInMonth());
temp = temp.addMonths(1);
// Now determine the months per page so that the printout fits on
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment