Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Fred Kiefer Newsgroups: gnu.gnustep.bug Subject: [bug #54307] Wrong margins especially when printing one page Date: Sat, 14 Jul 2018 13:50:48 -0400 (EDT) Lines: 39 Approved: bug-gnustep@gnu.org Message-ID: References: <20180713-184526.sv47215.2354@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1531590656 28768 208.118.235.17 (14 Jul 2018 17:50:56 GMT) X-Complaints-To: action@cs.stanford.edu To: Fred Kiefer , Yavor Doganov , bug-gnustep@gnu.org Envelope-to: bug-gnustep@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [208.118.235.79] X-Savane-Project: gnustep X-Savane-Tracker: bugs X-Savane-Item-ID: 54307 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 X-Apparently-From: 88.130.62.107 (Savane authenticated user FredKiefer) In-Reply-To: <20180713-184526.sv47215.2354@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.79 X-BeenThere: bug-gnustep@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNUstep programming environment List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.gnustep.bug:4328 Update of bug #54307 (project gnustep): Status: None => Confirmed Assigned to: None => FredKiefer _______________________________________________________ Follow-up Comment #1: Hi Yavor, thank you for this bug report and the patch. I already had some similar changes to NSPrinter implemented after the discussion on the mailing list. That should be similar to your code but tries to unify different code paths. As for NSPageLayout clearly the conversion was missing. I didn't like the way you set the margins on both sides to the same values. So I just added the corrected computation. I also tried to add the same logic to the NSPrintInfo code. Now with the NSPrintOperations change I understand which case you try to fix. But the patch would break scaling and a lot of other stuff. And it does not address the real issue here, just tries to work around in one special case. I will try to experiment with the printing code a bit and see whether I can come up woth something better. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/