From b06d4d48ed6079103dbf74e53fc2be964cd7fac9 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 21 Jun 2000 21:12:40 +0000 Subject: Made moving columns to the right work properly. 2000-06-21 Christopher James Lahey * e-table-header.c: Made moving columns to the right work properly. svn path=/trunk/; revision=3681 --- widgets/table/e-table-header.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/table') diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index 383f7a9080..2ac82215df 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -449,6 +449,9 @@ e_table_header_move (ETableHeader *eth, int source_index, int target_index) g_return_if_fail (source_index < eth->col_count); g_return_if_fail (target_index < eth->col_count); + if (source_index < target_index) + target_index --; + old = eth->columns [source_index]; eth_do_remove (eth, source_index, FALSE); eth_do_insert (eth, target_index, old); -- cgit