Skip to content

Commit

Permalink
Adjust text position to be the same as the item_edit entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-IT committed Sep 28, 2017
1 parent 3dac6df commit 858ca1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnucash/register/register-gnome/gnucash-sheet-private.c
Expand Up @@ -551,7 +551,7 @@ draw_cell (GnucashSheet *sheet,
break;

case CELL_ALIGN_RIGHT:
x_offset = width - 2 * CELL_HPADDING - logical_rect.width;
x_offset = width - 2 * CELL_HPADDING - logical_rect.width - 3;
break;

case CELL_ALIGN_CENTER:
Expand All @@ -562,7 +562,7 @@ draw_cell (GnucashSheet *sheet,
logical_rect.width) / 2;
break;
}
gtk_render_layout (stylectxt, cr, rect.x + x_offset, rect.y + 1, layout);
gtk_render_layout (stylectxt, cr, rect.x + x_offset + 1, rect.y, layout);

cairo_restore (cr);

Expand Down

0 comments on commit 858ca1f

Please sign in to comment.