src/editmodes/abstractEditMode.cpp

changeset 1017
fc1c13db9618
parent 1014
f0a8ecb6a357
child 1023
9450ac3cd930
--- a/src/editmodes/abstractEditMode.cpp	Sat Feb 13 04:14:43 2016 +0200
+++ b/src/editmodes/abstractEditMode.cpp	Sun Feb 14 03:19:28 2016 +0200
@@ -175,7 +175,7 @@
 	{
 		for (LDObject* obj : objs)
 		{
-			renderer()->document()->insertObj (pos++, obj);
+			renderer()->document()->insertObject (pos++, obj);
 			renderer()->compileObject (obj);
 		}
 
@@ -189,7 +189,7 @@
 void AbstractDrawMode::drawLength (QPainter &painter, const Vertex &v0, const Vertex &v1,
 	const QPointF& v0p, const QPointF& v1p) const
 {
-	if (not Config->drawLineLengths())
+	if (not m_config->drawLineLengths())
 		return;
 
 	const QString label = QString::number ((v1 - v0).length());
@@ -231,7 +231,7 @@
 			if (withlengths)
 				drawLength (painter, poly3d[i], poly3d[j], poly[i], poly[j]);
 
-			if (withangles and Config->drawAngles())
+			if (withangles and m_config->drawAngles())
 			{
 				QLineF l0 (poly[h], poly[i]),
 					l1 (poly[i], poly[j]);

mercurial