X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.c;h=8f6f609ef439f62966a7a179407b1b9a8a07f11f;hb=8d8f9e44b17ef9737084eea7693072e4777a0609;hp=79099411aec7634bd41b6ed8dbeeb033a88e542b;hpb=dcbb0ab8521a5e166f257d86884407eb98ef63f0;p=xournal.git diff --git a/src/xo-paint.c b/src/xo-paint.c index 7909941..8f6f609 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; @@ -1076,6 +1077,11 @@ void clipboard_paste(void) gtk_selection_data_free(sel_data); update_copy_paste_enabled(); + update_color_menu(); + update_thickness_buttons(); + update_color_buttons(); + update_font_button(); + update_cursor(); // FIXME: can't know if pointer is within selection! } // modify the color or thickness of pen strokes in a selection