diff options
-rw-r--r-- | src/Canvas.cpp | 3 | ||||
-rw-r--r-- | src/circle.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 7ac9745..7daf8e7 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -981,7 +981,8 @@ GanvCanvasImpl::select_drag_handler(GdkEvent* event) // Select all modules within rect FOREACH_ITEM(_items, i) { GanvNode* node = *i; - if (ganv_node_is_within( + if ((void*)node != (void*)_select_rect && + ganv_node_is_within( node, ganv_box_get_x1(_select_rect), ganv_box_get_y1(_select_rect), diff --git a/src/circle.c b/src/circle.c index f7c7ab3..237a3d5 100644 --- a/src/circle.c +++ b/src/circle.c @@ -302,6 +302,8 @@ ganv_circle_draw(GanvItem* item, cairo_set_line_width(cr, impl->coords.width); if (dash_length > 0) { cairo_set_dash(cr, &dash_length, 1, circle->node.impl->dash_offset); + } else { + cairo_set_dash(cr, &dash_length, 0, 0); } cairo_stroke(cr); |