Made attributes justification default to GTK_JUSTIFY_LEFT
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 18 Nov 2008 07:11:37 +0000 (16:11 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 18 Nov 2008 07:11:37 +0000 (16:11 +0900)
lib/gtksheet/gtksheet.c

index 5917aca995b0b791c3c528d3265cceaff5f7dd3e..79ba35dc1bf521aa2fb31794e77b1f79a3c7aca6 100644 (file)
@@ -5625,7 +5625,7 @@ gtk_sheet_get_attributes (const GtkSheet *sheet, gint row, gint col,
     attributes->background = *bg;
 
   j = g_sheet_model_get_justification (sheet->model, row, col);
-  if (j) attributes->justification = *j;
+  attributes->justification = j ? *j : GTK_JUSTIFY_LEFT;
 
   font_desc = g_sheet_model_get_font_desc (sheet->model, row, col);
   if ( font_desc ) attributes->font_desc = font_desc;