src/gui_actions.cpp

changeset 188
4e686b771996
parent 183
f1b8cb53d2a2
child 192
c414924a647c
--- a/src/gui_actions.cpp	Thu May 09 04:01:37 2013 +0300
+++ b/src/gui_actions.cpp	Thu May 09 17:03:44 2013 +0300
@@ -209,7 +209,7 @@
 	
 	g_win->sel ().clear ();
 	for (LDObject* obj : g_curfile->m_objs)
-		if (obj->dColor == dColor)
+		if (obj->color == dColor)
 			g_win->sel ().push_back (obj);
 	
 	g_win->updateSelection ();
@@ -232,10 +232,10 @@
 	str zRefName;
 	
 	if (eType == LDObject::Subfile) {
-		zRefName = static_cast<LDSubfile*> (g_win->sel ()[0])->zFileName;
+		zRefName = static_cast<LDSubfile*> (g_win->sel ()[0])->fileName;
 		
 		for (LDObject* pObj : g_win->sel ())
-			if (static_cast<LDSubfile*> (pObj)->zFileName != zRefName)
+			if (static_cast<LDSubfile*> (pObj)->fileName != zRefName)
 				return;
 	}
 	
@@ -244,7 +244,7 @@
 		if (obj->getType() != eType)
 			continue;
 		
-		if (eType == LDObject::Subfile && static_cast<LDSubfile*> (obj)->zFileName != zRefName)
+		if (eType == LDObject::Subfile && static_cast<LDSubfile*> (obj)->fileName != zRefName)
 			continue;
 		
 		g_win->sel ().push_back (obj);

mercurial