~ubuntu-branches/ubuntu/feisty/gnumeric/feisty-updates

« back to all changes in this revision

Viewing changes to plugins/dif/dif.c

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2006-12-20 16:30:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20061220163057-3mrnnae80im72nlr
Tags: 1.7.6-1ubuntu1
* Merge with debian experimental:
  - debian/control, debian/*-gtk-*, debian/rules,
    debian/shlibs.local: Xubuntu changes for
    gtk/gnome multibuild.
  - run intltool-update in po*
  - Build Depend on intltool

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        Sheet *sheet;
308
308
        GnmRange r;
309
309
        gint row, col;
310
 
        gboolean res;
 
310
        gboolean ok = TRUE;
311
311
 
312
312
        sheet = wb_view_cur_sheet (wbv);
313
313
        if (sheet == NULL) {
326
326
        locale = gnm_push_C_locale ();
327
327
 
328
328
        /* Process all cells */
329
 
        for (row = r.start.row; res && row <= r.end.row; row++) {
 
329
        for (row = r.start.row; ok && row <= r.end.row; row++) {
330
330
                gsf_output_puts (out, "-1,0\n" "BOT\n");
331
331
                for (col = r.start.col; col <= r.end.col; col++) {
332
332
                        GnmCell *cell = sheet_cell_get (sheet, col, row);
347
347
                                        value_get_as_float (cell->value));
348
348
                        else {
349
349
                                gchar *str = gnm_cell_get_rendered_text (cell);
350
 
                                res = gsf_output_printf (out,
 
350
                                ok = gsf_output_printf (out,
351
351
                                                         "1,0\n" "\"%s\"\n",
352
352
                                                         str);
353
353
                                g_free (str);
362
362
 
363
363
        gnm_pop_C_locale (locale);
364
364
 
365
 
        if (!res)
 
365
        if (!ok)
366
366
                gnumeric_io_error_string (io_context, _("Error while saving DIF file."));
367
367
}