summaryrefslogtreecommitdiffstats
path: root/Drawer.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-13 22:06:01 +0100
committerneoraider <devnull@localhost>2008-02-13 22:06:01 +0100
commitc4aadd98230f3b9ab50398b715164ff874ea8a61 (patch)
tree8b6fcaf48fb0a7eb9af6fd1483659ab4d6e5c000 /Drawer.cpp
parent16397f4474fbbe5f140a5e68b3bb6934170bf2e3 (diff)
downloadzoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.tar
zoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.zip
zoomedit: Vertices are selectable now.
Diffstat (limited to 'Drawer.cpp')
-rw-r--r--Drawer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Drawer.cpp b/Drawer.cpp
index 57c92c6..6d5b228 100644
--- a/Drawer.cpp
+++ b/Drawer.cpp
@@ -47,7 +47,7 @@ gboolean Drawer::eventHandler(GtkWidget *widget, GdkEvent *event, Drawer *drawer
return TRUE;
case GDK_LEAVE_NOTIFY:
- drawer->window->getEditManager().setHoveredVertex(NULL);
+ drawer->window->getEditManager().setHoveredVertex(NULL, drawer->scale);
drawer->window->getActiveTool()->getEventHandler()->motion();
return TRUE;
@@ -156,7 +156,7 @@ void Drawer::updateScrollbars(float x, float y) {
void Drawer::updateHoveredPoint(float x, float y) {
Vertex v(x, y);
viewToImage(&v);
- window->getEditManager().setHoveredVertex(&v);
+ window->getEditManager().setHoveredVertex(&v, scale);
g_object_set(G_OBJECT(hRuler), "position", v.getX(), NULL);
g_object_set(G_OBJECT(vRuler), "position", v.getY(), NULL);