Calls to RegressionCurveHelper::getFirstCurveNotMeanValueLine in [1] (and calls to other similar methods on the same class) mostly assume that only one trendline / regression curve per data series can be present. With 4.2 (and ODF 1.2) this is no longer true as there can be multiple trendlines for one data series. This calls must be inspected and changed to act appropriately in those scenarios, the method getFirstCurveNotMeanValueLine (and similar) must be removed. [1] chart2/source/inc/RegressionCurveHelper.hxx Regards, Tomaž
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: *Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.1 or later) https://www.libreoffice.org/download/ *If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior *If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT *Update the version field *Reply via email (please reply directly on the bug tracker) *Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-04-18
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.5 or 5.2.1 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20160920
Setting Assignee back to default. Please assign it back to yourself if you're still working on this issue
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Tomaž, is it still actual now?
AFAIK nothing changed there regarding this, yes. This method still exists and is used. OTOH, this bug could be an easyhack (and it already has a code pointer).
Let make it an easyhack then...
I'm currently starting work on this bug.
Dear Mehmet Sait Gülmez, This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW. Please assigned it back to yourself if you're still working on this.
Assigned to shivamhere247@gmail.com
> This calls must be inspected and changed to act > appropriately in those scenarios, the method getFirstCurveNotMeanValueLine > (and similar) must be removed. I don't understand how removing getFirstCurveNotMeanValueLine will fix the bug. Someone please mentor me on this.
(In reply to Shivam Kumar Singh from comment #11) > > This calls must be inspected and changed to act > > appropriately in those scenarios, the method getFirstCurveNotMeanValueLine > > (and similar) must be removed. > > > I don't understand how removing getFirstCurveNotMeanValueLine will fix the > bug. > Someone please mentor me on this. Notice the two points: 1. The calls must be inspected and changed to act appropriately in those scenarios 2. The method getFirstCurveNotMeanValueLine (and similar) must be removed
Hi , > Notice the two points: > 1. The calls must be inspected and changed to act appropriately in those > scenarios Calling getAllRegressionCurvesNotMeanValueLine instead of getFirstCurveNotMeanValueLine should do the task , because we need a whole vector of curves/trendlines and not just a single one . Replacing the previous function calls with this is what's required . What do you think ? std::vector< Reference< chart2::XRegressionCurve > > aRegressionCurves( RegressionCurveHelper::getAllRegressionCurvesNotMeanValueLine( xDiagram )); bool bHasEquation = false; for( const auto& xCurve : aRegressionCurves ) bHasEquation = bHasEquation || RegressionCurveHelper::hasEquation(xCurve); > 2. The method getFirstCurveNotMeanValueLine (and similar) must be removed This is easy once 1 is done
I have submitted a patch relating to this bug, I was not able to fix the bug but I wanted to do some progress, as it is mentioned there can be more than one regression curves corresponding to data series , so I replaced getFirstCurveNotMeanValueLine with getAllregressionCurvesNotMeanValueLine and removed the function from RegressionCurveHelper.hxx and RegressionCurveHelper.cxx This is my patch https://gerrit.libreoffice.org/c/core/+/87161 Please discuss furthur steps , to complete it .
Hi, sorry - somehow I missed this. Just changing one for another is not the solution. What is the correct way here is to inspect where getFirstCurveNotMeanValueLine is called and figure out what that does. For example if a menu action is called from the UI and you don't have a regression curve selected, then that menu action should be disabled and it shouldn't take the first regression curve. So the task is to search for uses of getFirstCurveNotMeanValueLine, then get all the way to where it is triggered in the UI and determine if the UI does what it should do, then work yourself all the way back to he call. As said in the description - previously we only supported one regression curve and which had partial code overlapping with the mean curve. Now there can be multiple regression curves and we practically never should just assume to take the first regression curve (with getFirstCurveNotMeanValueLine), but the one that is selected or the action is not possible. I think that in most cases you will get to a dead end when inspecting those calls to the UI, so they would be safe to remove.
Dear Shivam Kumar Singh, This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW. Please assign it back to yourself if you're still working on this.