X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-editor.c;h=1c2442d89398d492990bd61a038dcb16d1aa0445;hb=5825b0b870739af3760c07138bed50e99db788ae;hp=30098a7e50d905f439d3d68e9847fe72379862bf;hpb=50800683562f7eaa3d8872b71163bbdcfb1d9ea5;p=pspp diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 30098a7e50..1c2442d893 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -230,8 +230,8 @@ new_data_callback (PsppireDataStore *ds, gpointer data) the data sheets. If we don't do this, then the sheet remembers the value that was in the selected cell and stores it back, wiping out whatever value there is in the new data. Bug #30502. */ - for (i = 0; i < 4; i++) - psppire_sheet_unselect_range (PSPPIRE_SHEET (de->data_sheet[i])); + if (de->data_sheet[0] != NULL) + psppire_sheet_unselect_range (PSPPIRE_SHEET (de->data_sheet[0])); } static void