src/colorSelectDialog.cpp

changeset 421
7d26db0be944
parent 410
a5aebcf4a1c8
child 455
c5d14d112034
--- a/src/colorSelectDialog.cpp	Fri Aug 02 15:57:03 2013 +0300
+++ b/src/colorSelectDialog.cpp	Fri Aug 02 16:33:30 2013 +0300
@@ -162,6 +162,7 @@
 		m_firstResize = false;
 	}
 	
+	(void) ev;
 	drawScene();
 }
 
@@ -171,8 +172,8 @@
 void ColorSelector::mousePressEvent (QMouseEvent* event) {
 	QPointF scenepos = ui->viewport->mapToScene (event->pos());
 	
-	ulong x = ( (ulong) scenepos.x() - (g_squareSize / 2)) / g_squareSize;
-	ulong y = ( (ulong) scenepos.y() - (g_squareSize / 2)) / g_squareSize;
+	ulong x = ((ulong) scenepos.x() - (g_squareSize / 2)) / g_squareSize;
+	ulong y = ((ulong) scenepos.y() - (g_squareSize / 2)) / g_squareSize;
 	ulong idx = (y * g_numColumns) + x;
 	
 	LDColor* col = ::getColor (idx);

mercurial