X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.c;h=85e3536a488430b7c81833475f7431cdd5c1eea9;hb=34dbe92edd95fbf7082c3e54f438c76355254fe5;hp=32e7504ea136707e130185b05b12d012292bcc78;hpb=f403c2b52eae763e10452f039a2bb586a70acc49;p=xournal.git diff --git a/src/xo-paint.c b/src/xo-paint.c index 32e7504..85e3536 100644 --- a/src/xo-paint.c +++ b/src/xo-paint.c @@ -1086,7 +1086,7 @@ void clipboard_paste(void) // modify the color or thickness of pen strokes in a selection -void recolor_selection(int color) +void recolor_selection(int color_no, guint color_rgba) { GList *itemlist; struct Item *item; @@ -1108,8 +1108,8 @@ void recolor_selection(int color) g_memmove(brush, &(item->brush), sizeof(struct Brush)); undo->auxlist = g_list_append(undo->auxlist, brush); // repaint the stroke - item->brush.color_no = color; - item->brush.color_rgba = predef_colors_rgba[color]; + item->brush.color_no = color_no; + item->brush.color_rgba = color_rgba; if (item->canvas_item!=NULL) { if (!item->brush.variable_width) gnome_canvas_item_set(item->canvas_item,