From d442525f54414ef737b36bd98acd786d40db2b59 2013-06-10 10:09:07 From: Miikka Heikkinen Date: 2013-06-10 10:09:07 Subject: [PATCH] Fix boxplot drawing artifacts with thick pen Change-Id: Ib031f97c72a28cbf58d9d272a33a8a0960dd3991 Reviewed-by: Mika Salmela --- diff --git a/src/boxplotchart/boxwhiskers.cpp b/src/boxplotchart/boxwhiskers.cpp index a74fe16..50faf64 100644 --- a/src/boxplotchart/boxwhiskers.cpp +++ b/src/boxplotchart/boxwhiskers.cpp @@ -164,6 +164,9 @@ void BoxWhiskers::updateGeometry(AbstractDomain *domain) m_boxPath = path; m_boundingRect = m_boxPath.boundingRect(); + + qreal extra = (m_pen.width() / 2.0); + m_boundingRect.adjust(-extra, -extra, extra, extra); } #include "moc_boxwhiskers_p.cpp"