src/editmodes/abstractEditMode.cpp

changeset 1323
05b3e173c900
parent 1321
413d7be6f042
child 1326
69a90bd2dba2
--- a/src/editmodes/abstractEditMode.cpp	Sat Mar 24 12:09:26 2018 +0200
+++ b/src/editmodes/abstractEditMode.cpp	Sat Mar 24 12:34:20 2018 +0200
@@ -207,7 +207,7 @@
  */
 void AbstractDrawMode::drawLineLength(QPainter &painter, const Vertex &v0, const Vertex &v1, const QPointF& v0p, const QPointF& v1p) const
 {
-	if (not m_config->drawLineLengths())
+	if (not config::drawLineLengths())
 		return;
 
 	const QString label = QString::number(abs(v1 - v0), 'f', 2);
@@ -256,7 +256,7 @@
 			if (drawLineLengths)
 				drawLineLength(painter, polygon3d[i], polygon3d[j], polygon2d[i], polygon2d[j]);
 
-			if (drawAngles and m_config->drawAngles())
+			if (drawAngles and config::drawAngles())
 			{
 				QLineF line0 = {polygon2d[prior], polygon2d[i]};
 				QLineF line1 = {polygon2d[i], polygon2d[j]};

mercurial