X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fsheet%2Fpsppire-sheetmodel.c;h=a948d4535d6b7c8693aa48506fe1880cff9e7f8c;hb=0fe886a656b0ee57b4d542b7c16b3c56288b6fc6;hp=61b667d41aa4c27ccf4e7d1ff7e73eb35614c04f;hpb=ffce2432a76f3ffbe2a19228d3b3d03613c3b4a3;p=pspp diff --git a/src/ui/gui/sheet/psppire-sheetmodel.c b/src/ui/gui/sheet/psppire-sheetmodel.c index 61b667d41a..a948d4535d 100644 --- a/src/ui/gui/sheet/psppire-sheetmodel.c +++ b/src/ui/gui/sheet/psppire-sheetmodel.c @@ -1,5 +1,5 @@ /* PsppireSheetModel --- an abstract model for the PsppireSheet widget. - * Copyright (C) 2006, 2008 Free Software Foundation + Copyright (C) 2006, 2008 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -482,6 +482,8 @@ psppire_sheet_model_get_column_button (const PsppireSheetModel *model, if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_column_title) button->label = PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_column_title (model, col); + button->overstruck = FALSE; + return button; } @@ -534,7 +536,12 @@ psppire_sheet_model_get_row_button (const PsppireSheetModel *model, g_return_val_if_fail (PSPPIRE_IS_SHEET_MODEL (model), NULL); if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title) - button->label = PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title (model, row); + button->label = + PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_title (model, row); + + if ( PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_overstrike) + button->overstruck = + PSPPIRE_SHEET_MODEL_GET_IFACE (model)->get_row_overstrike (model, row); return button; }