src/ui/canvas.cpp

changeset 115
ed884a2fb009
parent 113
c0d064521ee0
child 118
8e1c9f18ae15
--- a/src/ui/canvas.cpp	Tue Jul 27 09:56:06 2021 +0300
+++ b/src/ui/canvas.cpp	Tue Jul 27 11:11:32 2021 +0300
@@ -213,7 +213,9 @@
 			for (const auto& axis : directions)
 			{
 				const QPointF x_p = this->modelToScreenCoordinates(axis.direction);
-				const auto intersection = geom::rayRectangleIntersection(geom::rayFromPoints(toVec2(p1), toVec2(x_p)), box);
+				const auto intersection = geom::rayRectangleIntersection(
+					geom::rayFromPoints(toVec2(p1), toVec2(x_p)),
+					box);
 				if (intersection.has_value())
 				{
 					renderText(axis.text, *intersection);

mercurial