Commit cb1e0ba1 authored by Nick Lamb /GIMP's avatar Nick Lamb /GIMP

Fix #3179 (Revert uses wrong filename)

parent 5e360d62
Sat Oct 30 10:14:35 BST 1999 Nick Lamb <njl195@zepler.org>
* app/fileops.c: Fix #3179 (Revert uses wrong filename)
1999-10-29 Michael Natterer <mitch@gimp.org>
* app/brush_select.c
......
......@@ -551,7 +551,7 @@ file_revert_callback (GtkWidget *widget,
{
GDisplay *gdisplay;
GimpImage *gimage;
gchar *filename = NULL, *raw_filename = NULL;
gchar *filename = NULL;
gdisplay = gdisplay_active ();
if (!gdisplay) return;
......@@ -560,10 +560,9 @@ file_revert_callback (GtkWidget *widget,
g_message (_("Can't revert. No filename associated with this image"));
else
{
raw_filename = gimage_filename (gdisplay->gimage);
filename = g_basename (raw_filename);
filename = gimage_filename (gdisplay->gimage);
gimage = file_open_image (filename, raw_filename, RUN_INTERACTIVE);
gimage = file_open_image (filename, filename, RUN_INTERACTIVE);
if (gimage != NULL)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment