Skip to content

Commit 29d9b7b

Browse files
author
Dmitry
committed
-fix events overflow in month-view
1 parent 786a41f commit 29d9b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WEB-INF/src/com/dhtmlx/scheduler/PDFWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void printWatermark() throws Exception {
224224

225225
private void createPDF(double[] orientation) throws Exception {
226226
this.resp.setContentType("application/pdf");
227-
this.pdf = new PDF(this.resp.getOutputStream());
227+
this.pdf = new PDF(resp.getOutputStream());
228228

229229
this.f1 = new Font(pdf, "Helvetica");
230230
this.f1.setSize(10);
@@ -449,7 +449,7 @@ private void monthEventsDraw() throws Exception {
449449
events_grid[week][day]++;
450450
int event_length = (int) Math.floor(width / this.monthDayWidth);
451451
for (int j = 1; j <= event_length; j++) {
452-
events_grid[week][day + j]++;
452+
events_grid[week][day + j]=events_grid[week][day];
453453
}
454454
} else {
455455
double cell_x = this.offsetLeft + day * this.monthDayWidth

0 commit comments

Comments
 (0)