Shorten thick pens lines in legend
ClosedPublic

Authored by wojnilowicz on Apr 17 2017, 8:57 AM.

Details

Summary

Let's say pen width is 10. It will make dataset line length equal to 180
and that's 1000% more than with pen width equal to 1 and certainly much
more than we need.
This patch caps pen's length to maximum 18 + marker size.

Test Plan

Tested in KMyMoney.
Legend before patch


Legend after patch

Diff Detail

Repository
R478 KDiagram: Libraries for diagrams
Lint
Lint Skipped
Unit
Unit Tests Skipped
wojnilowicz created this revision.Apr 17 2017, 8:57 AM
tbaumgart accepted this revision.Apr 17 2017, 10:19 AM
tbaumgart added a subscriber: tbaumgart.

Looks good to me.

This revision is now accepted and ready to land.Apr 17 2017, 10:19 AM
wojnilowicz closed this revision.Jun 10 2017, 10:40 AM