Patch: Bug 617558 - Header in register doesn't clear properly

Geert Janssens janssens-geert at telenet.be
Tue May 4 06:23:24 EDT 2010


On Monday 3 May 2010, J. Alex Aycinena wrote:
> The header in the register doesn't clear properly in double-line mode
> when switching from transaction to split.
> 
> When the register is in double line mode and split detail is shown (either
> using the auto-split selection or requesting to view splits with the
>  button), moving the cursor from the transaction level (e.g., the
>  description field) to the split level (e.g., the memo field) doesn't
>  properly clear the header before re-drawing it. So the second line is left
>  with the text of the
> transaction-level second-line (specifically the 'Notes' heading text and
>  some vertical lines).
> 
> This happens because of an error in defining the size of the 'canvas'
> object in the function, 'gnc_header_request_redraw' so that when the
> function 'gnc_header_draw' is subsequently called and tries to use
> 'gdk_draw_rectangle' to blank the header, it can only affect the first
> line.
> 
> The attached patch fixes this.
> 
> I would be grateful if someone with commit capabilities would apply this
>  for me.
> 
> Thanks,
> 
> Alex
> 
I have confirmed the behavior and your fix and hence committed your patch.

Thank you for submitting it.

Geert


More information about the gnucash-devel mailing list