[education/labplot] src/backend/worksheet/plots/cartesian: format

Stefan Gerlach <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b2c6100d3c39bdbae7fe2a47f40f75bb04909c4c by Stefan Gerlach.
Committed on 20/07/2026 at 17:00.
Pushed by sgerlach into branch 'master'.

format

M  +3    -9    src/backend/worksheet/plots/cartesian/XYEquationCurve.cpp

https://invent.kde.org/education/labplot/-/commit/b2c6100d3c39bdbae7fe2a47f40f75bb04909c4c

diff --git a/src/backend/worksheet/plots/cartesian/XYEquationCurve.cpp b/src/backend/worksheet/plots/cartesian/XYEquationCurve.cpp
index cff55a0cf7..319ca5d0bb 100644
--- a/src/backend/worksheet/plots/cartesian/XYEquationCurve.cpp
+++ b/src/backend/worksheet/plots/cartesian/XYEquationCurve.cpp
@@ -155,8 +155,7 @@ void XYEquationCurvePrivate::recalculate() {
 			pointCount = static_cast<int>(pixelWidth * OVERSAMPLING_FACTOR);
 
 			// Parametric and polar functions have more complex curves and need more points
-			if (equationData.type == XYEquationCurve::EquationType::Parametric ||
-				equationData.type == XYEquationCurve::EquationType::Polar) {
+			if (equationData.type == XYEquationCurve::EquationType::Parametric || equationData.type == XYEquationCurve::EquationType::Polar) {
 				pointCount *= 5; // 5x more points for parametric/polar
 			}
 
@@ -187,13 +186,8 @@ void XYEquationCurvePrivate::recalculate() {
 	} else if (equationData.type == XYEquationCurve::EquationType::Polar) {
 		valid = parser->tryEvaluatePolar(equationData.expression1, equationData.min, equationData.max, pointCount, xVector, yVector);
 	} else if (equationData.type == XYEquationCurve::EquationType::Parametric) {
-		valid = parser->tryEvaluateParametric(equationData.expression1,
-											  equationData.expression2,
-											  equationData.min,
-											  equationData.max,
-											  pointCount,
-											  xVector,
-											  yVector);
+		valid =
+			parser->tryEvaluateParametric(equationData.expression1, equationData.expression2, equationData.min, equationData.max, pointCount, xVector, yVector);
 	}
 
 	if (!valid) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.