https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292017-01-02T15:59:21ZRedmineRedmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=755842017-01-02T15:59:21ZSutamin Lynfiled
<ul><li><strong>File</strong> <a href="/attachments/17393">gannt_1daytask.JPG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/17393/gannt_1daytask.JPG">gannt_1daytask.JPG</a> added</li></ul><p>LGTM. I hope for early adoption.</p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=756042017-01-04T00:52:36ZGo MAEDA
<ul></ul><p>I have not been able to reproduce the problem yet.<br />Could you please describe the detailed steps to reproduce the problem and upload screenshots (before fix and after fix) ?</p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=756152017-01-04T10:47:42ZDaniel Ritz
<ul><li><strong>File</strong> <a href="/attachments/17402">pdf-vs-png.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/17402/pdf-vs-png.png">pdf-vs-png.png</a> added</li></ul><p>Sorry, I have no easy reproducer. I used a dump of our productive DB while working on the fix...</p>
<p>Attached is a screenshot with comparing the Gantt rendered correctly as PNG and incorrectly as PDF. After the fix, the PDF looks correct too (no screenshot taken).<br />Tasks 3-7 shown on the screenshot are single-day tasks and should all render the same.</p>
<p><img src="https://www.redmine.org/attachments/download/17402/pdf-vs-png.png" alt="" /></p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=968422020-03-19T07:28:21ZYuichi HARADA
<ul><li><strong>File</strong> <a href="/attachments/25047">set-huge-months.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/25047/set-huge-months.png">set-huge-months.png</a> added</li><li><strong>File</strong> <a href="/attachments/25048">actual-pdf.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/25048/actual-pdf.png">actual-pdf.png</a> added</li></ul><p>Daniel Ritz wrote:</p>
<blockquote>
<p>When a task starts and ends on the same day, it can happen that the bar in the PDF is rendered wrong, i.e. it's rendered from the start day to the right end of the page.</p>
</blockquote>
<p>I have confirmed.<br />If you set a huge value to the Gantt display months, all Gantt bars for issues with the extremely short the start date and due date will appear in the PDF this way.</p>
<p><img src="https://www.redmine.org/attachments/download/25047/set-huge-months.png" style="width:600px;border:1px solid #ccc;" alt="" /></p>
<p><img src="https://www.redmine.org/attachments/download/25048/actual-pdf.png" style="width:600px;border:1px solid #ccc;" alt="" /></p>
<blockquote>
<p>The attached patch fixes the PDF rendering problem by making sure, the with used in the <code>RDMCell()</code> call is at least 0.</p>
</blockquote>
<p>I think <a href="https://www.redmine.org/attachments/download/16573/gantt-single-day-task-pdf-rendering.patch" class="external">gantt-single-day-task-pdf-rendering.patch</a> should be incorporated. This problem will be solved.</p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=968462020-03-19T14:28:22ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>4.0.7</i></li></ul><p>Setting the target version to 4.0.7.</p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=968622020-03-20T04:56:46ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li></ul><p>Committed the patch. Thank you for your contribution.</p> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=968632020-03-20T04:57:41ZGo MAEDA
<ul><li><strong>Tracker</strong> changed from <i>Patch</i> to <i>Defect</i></li><li><strong>Subject</strong> changed from <i>Fix Gantt PDF rendering for single-day tasks</i> to <i>Gantt bars for single-day tasks may be rendered wrongly in PDF</i></li></ul> Redmine - Defect #23645: Gantt bars for single-day tasks may be rendered wrongly in PDFhttps://www.redmine.org/issues/23645?journal_id=982102020-06-15T04:38:49ZMischa The Evil
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/32916">Defect #32916</a>: Bar length is wrong when exporting gantt chart to PDF</i> added</li></ul>