Compare commits
No commits in common. "37a561115ab8ffd8fa0ca9693cfff4fad6e03e89" and "2c3c7a9a80d307c7aa8c4fef29228c88c270d6f7" have entirely different histories.
37a561115a
...
2c3c7a9a80
3
main.c
3
main.c
@ -189,6 +189,7 @@ static void on_convert_clicked(gpointer button, gpointer user)
|
||||
dialog = gtk_file_chooser_dialog_new("Save TeX File", GTK_WINDOW(data->main_window), GTK_FILE_CHOOSER_ACTION_SAVE,
|
||||
"Cancel", GTK_RESPONSE_CANCEL, "Save", GTK_RESPONSE_ACCEPT, NULL);
|
||||
res = gtk_dialog_run(GTK_DIALOG(dialog));
|
||||
gtk_widget_destroy(dialog);
|
||||
if (res == GTK_RESPONSE_ACCEPT) {
|
||||
file_name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
|
||||
tex_file = fopen(file_name, "w");
|
||||
@ -196,8 +197,6 @@ static void on_convert_clicked(gpointer button, gpointer user)
|
||||
gtk_widget_destroy(dialog);
|
||||
render_cell_to_code(cell_to_render, layer_list, tex_file);
|
||||
fclose(tex_file);
|
||||
} else {
|
||||
gtk_widget_destroy(dialog);
|
||||
}
|
||||
|
||||
g_list_free_full(layer_list, (GDestroyNotify)delete_layer_info_struct);
|
||||
|
Loading…
Reference in New Issue
Block a user