r19379 - gnucash/trunk/src/register/register-gnome - Double clicking on the balance column in a register doesn't resize the
Mike Alexander
mta at code.gnucash.org
Tue Jul 27 18:46:17 EDT 2010
Author: mta
Date: 2010-07-27 18:46:17 -0400 (Tue, 27 Jul 2010)
New Revision: 19379
Trac: http://svn.gnucash.org/trac/changeset/19379
Modified:
gnucash/trunk/src/register/register-gnome/gnucash-header.c
Log:
Double clicking on the balance column in a register doesn't resize the
column because there is a zero width column to the right of it. This may
fix all or part of bugs 563588, 345711, or 506261.
Modified: gnucash/trunk/src/register/register-gnome/gnucash-header.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/gnucash-header.c 2010-07-23 19:22:55 UTC (rev 19378)
+++ gnucash/trunk/src/register/register-gnome/gnucash-header.c 2010-07-27 22:46:17 UTC (rev 19379)
@@ -563,10 +563,15 @@
&x, &y);
on_line = pointer_on_resize_line (header, x, y, &ptr_col);
- resize_col = find_resize_col (header, ptr_col);
-
- if ((resize_col > -1) &&
- (on_line || (resize_col == ptr_col)))
+
+ /* If we're on a resize line and the column to the right is zero
+ width, resize that one. */
+ if (on_line)
+ resize_col = find_resize_col (header, ptr_col);
+ else
+ resize_col = ptr_col;
+
+ if (resize_col > -1)
{
header->in_resize = FALSE;
header->resize_col = -1;
More information about the gnucash-changes
mailing list