diff options
Diffstat (limited to 'pcl/pcpage.c')
-rw-r--r-- | pcl/pcpage.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/pcl/pcpage.c b/pcl/pcpage.c index c9e6e34d0..e59d04407 100644 --- a/pcl/pcpage.c +++ b/pcl/pcpage.c @@ -590,8 +590,6 @@ pcl_end_page( code = (*pcs->end_page)(pcs, pcs->num_copies, true); if ( code < 0 ) return code; - /* allow the logical orientation command to be used again */ - pcs->orientation_set = false; if ( pcs->end_page == pcl_end_page_top ) code = gs_erasepage(pcs->pgs); @@ -658,13 +656,8 @@ set_page_size( } } if ((psize != 0) && ((code = pcl_end_page_if_marked(pcs)) >= 0)) { - /* if the orientation flag is not set for this page we select - a portrait page using the set paper size. Otherwise select - the paper using the current orientation. */ - if ( pcs->orientation_set == false ) - new_logical_page(pcs, 0, psize, false, false); - else - new_page_size(pcs, psize, false, false); + pcs->xfm_state.print_dir = 0; + new_page_size(pcs, psize, false, false); } return code; } @@ -759,7 +752,6 @@ set_logical_page_orientation( /* If orientation is same as before ignore the command */ if ( i == pcs->xfm_state.lp_orient ) { - pcs->orientation_set = true; return 0; } @@ -770,7 +762,6 @@ set_logical_page_orientation( pcs->hmi_cp = HMI_DEFAULT; pcs->vmi_cp = VMI_DEFAULT; new_logical_page(pcs, i, pcs->xfm_state.paper_size, false, false); - pcs->orientation_set = true; } return code; } @@ -1324,7 +1315,6 @@ pcpage_do_reset( } if ((type & (pcl_reset_initial | pcl_reset_printer)) != 0) { - pcs->orientation_set = false; pcs->paper_source = 0; /* ??? */ pcs->xfm_state.left_offset_cp = 0.0; pcs->xfm_state.top_offset_cp = 0.0; |