Fix #3179 (Revert uses wrong filename)

This commit is contained in:
Nick Lamb /GIMP 1999-10-30 09:15:18 +00:00
parent 5e360d628e
commit cb1e0ba121
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,6 @@
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

View File

@ -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)
{