src/gui_editactions.cpp

changeset 498
791c831c8020
parent 493
16766ac1bbd9
child 504
6a1fa662bfc1
--- a/src/gui_editactions.cpp	Sat Oct 05 12:51:13 2013 +0300
+++ b/src/gui_editactions.cpp	Sat Oct 05 15:18:47 2013 +0300
@@ -81,7 +81,7 @@
 // -----------------------------------------------------------------------------
 DEFINE_ACTION (Paste, CTRL (V))
 {	const str clipboardText = qApp->clipboard()->text();
-	ulong idx = g_win->getInsertionPoint();
+	int idx = g_win->getInsertionPoint();
 	g_win->sel().clear();
 	int num = 0;
 
@@ -310,9 +310,9 @@
 	{	if (obj->vertices() < 2)
 			continue;
 
-		ulong idx = obj->getIndex();
+		int idx = obj->getIndex();
 
-		for (short i = 0; i < obj->vertices(); ++i)
+		for (int i = 0; i < obj->vertices(); ++i)
 		{	LDVertex* vert = new LDVertex;
 			vert->pos = obj->getVertex (i);
 			vert->setColor (obj->color());

mercurial