bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP-BUG: Re: [bug #23137] Save doesn't use the filter information


From: Ben Pfaff
Subject: Re: PSPP-BUG: Re: [bug #23137] Save doesn't use the filter information
Date: Fri, 03 Oct 2008 21:31:29 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

unknown-1 <address@hidden> writes:

> This problem is still present. Something went wrong with generating the new
> version?

I crossported the fix to pre-0.6.1, which is in rc2, as the
following.  Please let me know if it doesn't work for you:

commit c62c692134dc5107354ffccb7a9ad2039b2b5f11
Author: Ben Pfaff <address@hidden>
Date:   Fri Oct 3 21:11:20 2008 -0700

    Add ".sav" or ".por" suffix to filename when saving with Save_As
    
    Closes bug #23137
    
    (This is a cross-port of commit 169887f6d6d7bf5c10d5b05786aa3fd252040c93
    from the master branch, originally authored and committed by John
    Darrington.)

diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c
index 9ca7511..f7df21c 100644
--- a/src/ui/gui/data-editor.c
+++ b/src/ui/gui/data-editor.c
@@ -1375,6 +1375,11 @@ data_save_as_dialog (GtkAction *action, struct 
data_editor *de)
        de->save_as_portable =
          ! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button_sys));
 
+       if ( de->save_as_portable)
+         append_filename_suffix (de, ".por");
+       else
+         append_filename_suffix (de, ".sav");
+
        save_file (de);
 
        window_set_name_from_filename (e, de->file_name);

-- 
"There's only one thing that will make them stop hating you.
 And that's being so good at what you do that they can't ignore you.
 I told them you were the best.  Now you damn well better be."
--Orson Scott Card, _Ender's Game_




reply via email to

[Prev in Thread] Current Thread [Next in Thread]