X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.c;h=47fd6137b2c074b597677a628929a93789324f5f;hb=21fbb1d7ed23de67f3a8237139ff154d5da16b08;hp=79099411aec7634bd41b6ed8dbeeb033a88e542b;hpb=dcbb0ab8521a5e166f257d86884407eb98ef63f0;p=xournal.git diff --git a/src/xo-paint.c b/src/xo-paint.c index 7909941..47fd613 100644 --- a/src/xo-paint.c +++ b/src/xo-paint.c @@ -608,6 +608,7 @@ gboolean start_resizesel(GdkEvent *event) ui.selection->new_x1 = ui.selection->bbox.left; ui.selection->new_x2 = ui.selection->bbox.right; gnome_canvas_item_set(ui.selection->canvas_item, "dash", NULL, NULL); + update_cursor_for_resize(pt); return TRUE; } return FALSE; @@ -1045,7 +1046,7 @@ void clipboard_paste(void) } p+= 2*item->path->num_points*sizeof(double); if (item->brush.variable_width) { - g_memmove(p, item->widths, (item->path->num_points-1)*sizeof(double)); + item->widths = g_memdup(p, (item->path->num_points-1)*sizeof(double)); p+= (item->path->num_points-1)*sizeof(double); } else item->widths = NULL;