Skip to content

Commit

Permalink
Revert DYMO label margins to before ed195b5
Browse files Browse the repository at this point in the history
When DYMO tape printing support was added in ed195b5 and 6f49c6e,
the label left/right margin was changed from 100 to 367 and the
bottom/top margin from 525 to 1.  This causes the label content to be
offset both vertically and horizontally with reference to the label.

The margin values are stored in the state file along with the other
media details so it is necessary to re-select the media size (or remove
the state file) for this change to take effect.
  • Loading branch information
ribbons committed Mar 11, 2024
1 parent 648bc20 commit ffa0e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lprint-dymo.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ lprintDYMO(
data->x_default = data->y_default = 300;

// Media...
data->left_right = 367;
data->bottom_top = 1;
data->left_right = 100;
data->bottom_top = 525;

data->num_media = (int)(sizeof(lprint_dymo_label) / sizeof(lprint_dymo_label[0]));
memcpy(data->media, lprint_dymo_label, sizeof(lprint_dymo_label));
Expand Down

0 comments on commit ffa0e37

Please sign in to comment.