Made moving columns to the right work properly.

2000-06-21  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header.c: Made moving columns to the right work
	properly.

svn path=/trunk/; revision=3681
This commit is contained in:
Christopher James Lahey
2000-06-21 21:12:40 +00:00
committed by Chris Lahey
parent ed696d7133
commit b06d4d48ed
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-06-21 Christopher James Lahey <clahey@helixcode.com>
* e-table-header.c: Made moving columns to the right work
properly.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-leaf.c: Fix a minor warning.

View File

@ -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);

View File

@ -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);