[kmymoney4] [Bug 383161] Broken net worth graph in case data contains only the same value
Ralf Habacker
bugzilla_noreply at kde.org
Sat Aug 5 21:35:20 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=383161
--- Comment #3 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to NSLW from comment #2)
> Ralf, it would be better if you would test master version before 'producing'
> bug.
> *** This bug has been marked as a duplicate of bug 338642 ***
I don't think that this is the same bug as 338642.
git master now contains a short KChart widget test. You may modify
kmymoney/reports/tests/chart-test.cpp as shown below:
QVector< double > vec0, vec1, vec2;
- vec0 << 5 << 1 << 3 << 4 << 1;
- vec1 << 3 << 6 << 2 << 4 << 8;
- vec2 << 0 << 7 << 1 << 2 << 1;ยด
+// vec0 << 5 << 1 << 3 << 4 << 1;
+// vec1 << 3 << 6 << 2 << 4 << 8;
+ vec3 << 7 << 7 << 7 << 7 << 7;
and let the app run which shows the mentioned behavior.
Then modify
CartesianAxis *yAxis = new CartesianAxis (widget.lineDiagram() );
+
static_cast<CartesianCoordinatePlane*>(widget.lineDiagram()->coordinatePlane())->setAutoAdjustVerticalRangeToData(101);
and run again - bug is fixed
then modify again
-
static_cast<CartesianCoordinatePlane*>(widget.lineDiagram()->coordinatePlane())->setAutoAdjustVerticalRangeToData(101);
+
static_cast<CartesianCoordinatePlane*>(widget.lineDiagram()->coordinatePlane())->setAutoAdjustVerticalRangeToData(2);
and compile and run again - bug is not fixed.
If you can confirm please restore bug state.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list