Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Fred Kiefer Newsgroups: gnu.gnustep.bug Subject: [bug #54307] Wrong margins especially when printing one page Date: Sun, 15 Jul 2018 16:58:42 -0400 (EDT) Lines: 28 Approved: bug-gnustep@gnu.org Message-ID: References: <20180713-184526.sv47215.2354@savannah.gnu.org> <20180714-175048.sv431.89064@savannah.gnu.org> <20180714-223622.sv47215.67070@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 1531688329 21550 208.118.235.17 (15 Jul 2018 20:58:49 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: 87.123.205.204 (Savane authenticated user FredKiefer) In-Reply-To: <20180714-223622.sv47215.67070@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:4330 Follow-up Comment #3, bug #54307 (project gnustep): I tried very hard to understand a bit more of this issue. In the end I found line 4503 in NSView.m: if ((location.x != 0 || location.y != 0) && NSIsEmptyRect(aRect) == YES) This only applies the following translation when the printed rectangle is empty. If I remove the last part of the test, a single page print gets positioned correctly. The question now is, why was this restriction here in the first place and will it have any negative results on other printing scenarios? It really would help here, if you could do some experiments on your side as well. First to confirm whether this resolves the specific issue and next on negative side effects. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/