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:
committed by
Chris Lahey
parent
ed696d7133
commit
b06d4d48ed
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user