This patch fixes bug 731519. The fix sets the upper limit before it sets the value of the end row spin button.

This commit is contained in:
Robert Fewell
2014-09-19 13:24:00 +01:00
committed by Geert Janssens
parent 32105585d4
commit b13f3dab2f

View File

@@ -1353,8 +1353,8 @@ csv_import_trans_assistant_preview_page_prepare (GtkAssistant *assistant,
adj = gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(info->end_row_spin));
if (gtk_adjustment_get_upper(adj) != info->num_of_rows)
{
gtk_adjustment_set_upper (adj, info->num_of_rows);
gtk_spin_button_set_value (GTK_SPIN_BUTTON(info->end_row_spin), info->num_of_rows);
gtk_adjustment_set_upper(adj, info->num_of_rows);
}
/* Update the row selection highlight */