Adjust text position to be the same as the item_edit entry

This commit is contained in:
Robert Fewell 2017-09-13 11:37:00 +01:00
parent 3dac6dfa16
commit 858ca1f8bc

View File

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