]> git.donarmstrong.com Git - xournal.git/blobdiff - src/xo-paint.c
Fix various bugs; use poppler instead of pdftoppm
[xournal.git] / src / xo-paint.c
index 79099411aec7634bd41b6ed8dbeeb033a88e542b..8f6f609ef439f62966a7a179407b1b9a8a07f11f 100644 (file)
@@ -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