Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 288124
Collapse All | Expand All

(-)cinepaint-0.22-1/plug-ins/collect/collect.cpp.orig (-2 / +2 lines)
Lines 301-307 Link Here
301
            return -1;
301
            return -1;
302
302
303
          // renaming the layer to the original filename
303
          // renaming the layer to the original filename
304
          gimp_layer_set_name (layers[0], strrchr(fc->value(1),'/')+1);
304
          gimp_layer_set_name (layers[0], (char *)(strrchr(fc->value(1),'/')+1));
305
          GPrecisionType image_base_prec = gimp_drawable_precision (layers[0]);
305
          GPrecisionType image_base_prec = gimp_drawable_precision (layers[0]);
306
          int base_gray = gimp_drawable_gray (layers[0]);
306
          int base_gray = gimp_drawable_gray (layers[0]);
307
307
Lines 341-347 Link Here
341
                    #endif
341
                    #endif
342
                    gimp_image_add_layer (image_ID, layers[0], 0); DBG
342
                    gimp_image_add_layer (image_ID, layers[0], 0); DBG
343
                    // set layer name to filename
343
                    // set layer name to filename
344
                    gimp_layer_set_name(layers[0], strrchr(fc->value(i),'/')+1);
344
                    gimp_layer_set_name(layers[0], (char *)(strrchr(fc->value(i),'/')+1));
345
345
346
                    // searching max dimensions
346
                    // searching max dimensions
347
                    if (gimp_image_width(load_image_ID) > max_w)
347
                    if (gimp_image_width(load_image_ID) > max_w)

Return to bug 288124