Nightly 2.0b2 Odd Page right margin has bad default value
I am using Windows 8.1u1 64bit, with nightly 2.0 beta 2 custom build, git 201c75c. Windows "Location" is set to Canada, with an English US keyboard setting.
New scores are either created with the "Create New Score" button, or "Create New Score" from the Start Center. They are being created with proper paper size (letter) for my area of the world.
Problem: Odd Page margin right value (and the linked Even Page margin left) is always defaulting to 15.9mm, which I suspect should be 10mm. I'm wondering if troubleshooting this problem will show why my pages are also printing shifted to the right. For related discussion see http://musescore.org/en/node/41611
Comments
I see something strange also on my pc. Here are the locale data:
System Locale: en-us;English (United States)
Input Locale: it;Italian (Italy)
Time Zone: (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Windows 8.1
commit 201c75c
When I create a new score with the "Choose instrument" option, the paper size is (correctly) set to A4 and the right margin is set to 10.06mm, see attached image.
It seems that the right margin is compute with an hard-coded staff width of 19cm
(page width) - (left margin) - 19cm
Indeed, for Letter the page width is 215.90mm and
(215.90 - 10.00 -190.00)mm = 15.90mm
I can confirm that. And I think I've seen that being reported elsewhere recently.
Could it be related to function pageFormat() inside page.cpp?
https://github.com/musescore/MuseScore/blob/master/libmscore/page.cpp#L…
Right margins are not set here, and the _printableWidth is set to 19.0 cm.
I tried to fix it in 781c5b756e but I don't have the good setup to test it. Can anyone tell if it's better? Does it solve #41611: Nightly 2.0 printing shifted to the right ?
The Odd page right margin is now correct, 10mm. The print shifting right is not fixed.
I hadn't really followed this, but since I know it is system-dependent, I thought I would confirm I too now get 10.00 margins left and right, odd and even pages, as I might have expected. This on Ubuntu 14.04, in US, with a default printer set to Letter.
Unfortunately, my printer driver does not actually allow me to print (I haven't yet figured out this CUPS business), so I can't easily test whether I get shift prints.
Does this fix also cover #46371: default page margins not applied on creation of new score? Seems the originally described problem is no longer reproducible because it was basically this issue.
OK so this one is fixed and it's not linked to #41611: Nightly 2.0 printing shifted to the right.
Automatically closed -- issue fixed for 2 weeks with no activity.