src/ldDocument.cc

changeset 855
e16f1587ef44
parent 850
a3d72b0e916d
child 857
e62983881460
--- a/src/ldDocument.cc	Sun Jul 27 15:13:42 2014 +0300
+++ b/src/ldDocument.cc	Mon Jul 28 03:34:05 2014 +0300
@@ -1117,7 +1117,7 @@
 		dprint ("Added object #%1 (%2)\n", obj->id(), obj->typeName());
 #endif
 
-	obj->setDocument (this);
+	obj->setDocument (self());
 	g_win->R()->compileObject (obj);
 	return getObjectCount() - 1;
 }
@@ -1139,7 +1139,7 @@
 {
 	history()->add (new AddHistory (pos, obj));
 	m_objects.insert (pos, obj);
-	obj->setDocument (this);
+	obj->setDocument (self());
 	g_win->R()->compileObject (obj);
 	
 
@@ -1212,7 +1212,7 @@
 	_objectVertices.remove (m_objects[idx]);
 	m_objects[idx]->deselect();
 	m_objects[idx]->setDocument (LDDocumentPtr());
-	obj->setDocument (this);
+	obj->setDocument (self());
 	addKnownVertices (obj);
 	g_win->R()->compileObject (obj);
 	m_objects[idx] = obj;

mercurial