Fix compilation error on Cygwin.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Apr 2009 23:42:04 +0000 (07:42 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Apr 2009 23:42:04 +0000 (07:42 +0800)
Fixes bug #26379

src/ui/gui/psppire-output-window.c

index 106b4ad0adcdf1ae5a9bc1eea5b045b026d61434..7b254b9540452666e6f39be6f19e7eba2086ca44 100644 (file)
@@ -327,16 +327,16 @@ reload_viewer (PsppireOutputWindow *ow)
       }
 
     /* Delete all the entire buffer */
-    gtk_text_buffer_get_start_iter (ov->buffer, &start_iter);
-    gtk_text_buffer_delete (ov->buffer, &start_iter, &end_iter);
+    gtk_text_buffer_get_start_iter (ow->buffer, &start_iter);
+    gtk_text_buffer_delete (ow->buffer, &start_iter, &end_iter);
 
 
-    gtk_text_buffer_get_start_iter (ov->buffer, &start_iter);
+    gtk_text_buffer_get_start_iter (ow->buffer, &start_iter);
     /* Read in the next lot of text */
     while (fgets (line, viewer_width + 1, fp) != NULL)
       {
        chars_inserted = TRUE;
-       gtk_text_buffer_insert (ov->buffer, &start_iter, line, -1);
+       gtk_text_buffer_insert (ow->buffer, &start_iter, line, -1);
       }
 
     fclose (fp);