D24029: Fix maximum y-value-range computation
Alex Debus
noreply at phabricator.kde.org
Tue Sep 17 17:48:56 BST 2019
alexde created this revision.
alexde added reviewers: VDG, Plasma, ngraham.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
alexde requested review of this revision.
REVISION SUMMARY
Rounding to the next 10 did not work if the maximum value was something like y_max = 30.947
In this case modulo 10 gives 0 and therefore the maximum values becomes 30 in the end, though it should be 40
otherwise the peak points outside of the chart.
Floor(max) + 10 always works.
REPOSITORY
R102 KInfoCenter
BRANCH
ymax (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D24029
AFFECTED FILES
Modules/energy/package/contents/ui/main.qml
To: alexde, #vdg, #plasma, ngraham
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190917/381d62ae/attachment-0001.html>
More information about the Plasma-devel
mailing list