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