src/ldtypes.cpp

changeset 542
46a33bdc0b36
parent 541
0e38beeb050a
child 551
0efe5dbcef07
--- a/src/ldtypes.cpp	Fri Dec 06 00:29:44 2013 +0200
+++ b/src/ldtypes.cpp	Fri Dec 06 20:53:36 2013 +0200
@@ -669,8 +669,6 @@
 // Hook the set accessors of certain properties to this changeProperty function.
 // It takes care of history management so we can capture low-level changes, this
 // makes history stuff work out of the box.
-//
-// TODO: use new PROPERTY-callbacks
 // -----------------------------------------------------------------------------
 template<class T> static void changeProperty (LDObject* obj, T* ptr, const T& val)
 {	long idx;
@@ -701,6 +699,8 @@
 {	return m_coords[i]->data();
 }
 
+// =============================================================================
+// -----------------------------------------------------------------------------
 void LDObject::setVertex (int i, const vertex& vert)
 {	changeProperty (this, &m_coords[i], LDSharedVertex::getSharedVertex (vert));
 }
@@ -708,7 +708,7 @@
 // =============================================================================
 // -----------------------------------------------------------------------------
 void LDMatrixObject::setPosition (const vertex& a)
-{	changeProperty (getLinkPointer(), &m_position, LDSharedVertex::getSharedVertex (a));
+{	changeProperty (getLinkPointer(), &m_Position, LDSharedVertex::getSharedVertex (a));
 }
 
 // =============================================================================

mercurial