Blame SOURCES/7.4.461

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.461
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.461
22c937
Problem:    MS-Windows: When collate is on the number of copies is too high.
22c937
Solution:   Only set the collated/uncollated count when collate is on.
22c937
	    (Yasuhiro Matsumoto)
22c937
Files:	    src/os_mswin.c
22c937
22c937
22c937
*** ../vim-7.4.460/src/os_mswin.c	2014-09-23 21:53:35.306849352 +0200
22c937
--- src/os_mswin.c	2014-09-27 11:14:27.287520497 +0200
22c937
***************
22c937
*** 1673,1688 ****
22c937
       */
22c937
      psettings->chars_per_line = prt_get_cpl();
22c937
      psettings->lines_per_page = prt_get_lpp();
22c937
!     psettings->n_collated_copies = (prt_dlg.Flags & PD_COLLATE)
22c937
! 							? prt_dlg.nCopies : 1;
22c937
!     psettings->n_uncollated_copies = (prt_dlg.Flags & PD_COLLATE)
22c937
! 							? 1 : prt_dlg.nCopies;
22c937
  
22c937
!     if (psettings->n_collated_copies == 0)
22c937
! 	psettings->n_collated_copies = 1;
22c937
  
22c937
!     if (psettings->n_uncollated_copies == 0)
22c937
  	psettings->n_uncollated_copies = 1;
22c937
  
22c937
      psettings->jobname = jobname;
22c937
  
22c937
--- 1673,1694 ----
22c937
       */
22c937
      psettings->chars_per_line = prt_get_cpl();
22c937
      psettings->lines_per_page = prt_get_lpp();
22c937
!     if (prt_dlg.Flags & PD_USEDEVMODECOPIESANDCOLLATE)
22c937
!     {
22c937
! 	psettings->n_collated_copies = (prt_dlg.Flags & PD_COLLATE)
22c937
! 						    ? prt_dlg.nCopies : 1;
22c937
! 	psettings->n_uncollated_copies = (prt_dlg.Flags & PD_COLLATE)
22c937
! 						    ? 1 : prt_dlg.nCopies;
22c937
  
22c937
! 	if (psettings->n_collated_copies == 0)
22c937
! 	    psettings->n_collated_copies = 1;
22c937
  
22c937
! 	if (psettings->n_uncollated_copies == 0)
22c937
! 	    psettings->n_uncollated_copies = 1;
22c937
!     } else {
22c937
! 	psettings->n_collated_copies = 1;
22c937
  	psettings->n_uncollated_copies = 1;
22c937
+     }
22c937
  
22c937
      psettings->jobname = jobname;
22c937
  
22c937
*** ../vim-7.4.460/src/version.c	2014-09-24 13:26:39.954971642 +0200
22c937
--- src/version.c	2014-09-27 11:16:48.883520806 +0200
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     461,
22c937
  /**/
22c937
22c937
-- 
22c937
hundred-and-one symptoms of being an internet addict:
22c937
188. You purchase a laptop so you can surf while sitting on the can.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///