Skip to content

Commit

Permalink
fix bug in margin calc
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatters1 committed Jan 16, 2025
1 parent b8d9186 commit 52b983a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document_options_to_musescore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function write_page_prefs(style_element)
set_element_text(style_element, "pageWidth", page_prefs.PageWidth / EVPU_PER_INCH)
set_element_text(style_element, "pageHeight", page_prefs.PageHeight / EVPU_PER_INCH)
set_element_text(style_element, "pagePrintableWidth",
(page_prefs.PageWidth - page_prefs.LeftPageRightMargin - page_prefs.LeftPageRightMargin) / EVPU_PER_INCH)
(page_prefs.PageWidth - page_prefs.LeftPageLeftMargin - page_prefs.LeftPageRightMargin) / EVPU_PER_INCH)
set_element_text(style_element, "pageEvenLeftMargin", page_prefs.LeftPageLeftMargin / EVPU_PER_INCH)
set_element_text(style_element, "pageOddLeftMargin",
(page_prefs.UseFacingPages and page_prefs.RightPageLeftMargin or page_prefs.LeftPageLeftMargin) / EVPU_PER_INCH)
Expand Down

0 comments on commit 52b983a

Please sign in to comment.