From 7785b72d49051c052c829499d13cba4414df9540 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 21 Oct 2024 10:47:54 +0200 Subject: [PATCH] tdf#163486: PVS: Two similar code fragments were found Since commit 4c2701d4cc8b27eed56172b4188b61efb8783c55 Author: Vladimir Glazounov Date: Tue May 22 17:53:11 2007 +0000 INTEGRATION: CWS chart2mst3 (1.1.4); FILE ADDED V778 Two similar code fragments were found. Perhaps, this is a typo and 'xValuesX' variable should be used instead of 'xValuesY'. Change-Id: I24a904ee2e0fa81eb50756545d4b1127b93579fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175322 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- chart2/source/model/template/XYDataInterpreter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx index 2404f5e7f521..d6daa2a5b1d9 100644 --- a/chart2/source/model/template/XYDataInterpreter.cxx +++ b/chart2/source/model/template/XYDataInterpreter.cxx @@ -180,7 +180,7 @@ InterpretedData XYDataInterpreter::reinterpretDataSeries( { xValuesX = aValueSeqVec[nIndex++]; if( xValuesX.is()) - SetRole( xValuesY->getValues(), u"values-x"_ustr); + SetRole( xValuesX->getValues(), u"values-x"_ustr); } } if( xValuesY.is())