File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ double viewportFontSize(SEXP vp);
560560double  viewportLineHeight (SEXP  vp );
561561
562562SEXP  viewportClipSXP (SEXP  vp );
563- Rboolean  viewportClip (SEXP  vp );
563+ int  viewportClip (SEXP  vp );
564564
565565SEXP  viewportMaskSXP (SEXP  vp );
566566Rboolean  viewportMask (SEXP  vp );
Original file line number Diff line number Diff line change 11/* 
22 *  R : A Computer Language for Statistical Data Analysis 
33 *  Copyright (C) 2001-3 Paul Murrell 
4-  *                2003-2013  The R Core Team 
4+  *                2003-2025  The R Core Team 
55 * 
66 *  This program is free software; you can redistribute it and/or modify 
77 *  it under the terms of the GNU General Public License as published by 
@@ -57,7 +57,7 @@ double layoutVJust(SEXP l) {
5757
5858Rboolean  relativeUnit (SEXP  unit , int  index ,
5959		   pGEDevDesc  dd ) {
60-     return  pureNullUnit (unit , index , dd );
60+     return  ( Rboolean )  pureNullUnit (unit , index , dd );
6161}
6262
6363void  findRelWidths (SEXP  layout , int  * relativeWidths ,
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ SEXP viewportClipSXP(SEXP vp) {
4242    return  VECTOR_ELT (vp , VP_CLIP );
4343}
4444
45- Rboolean  viewportClip (SEXP  vp ) {
45+ // This can be NA_LOGICAL, and it is tested for that in grd.c 
46+ int  viewportClip (SEXP  vp ) {
4647    return  LOGICAL (VECTOR_ELT (vp , VP_CLIP ))[0 ];
4748}
4849
@@ -54,7 +55,7 @@ Rboolean viewportMask(SEXP vp) {
5455    SEXP  mask  =  viewportMaskSXP (vp );
5556    if  (!isLogical (mask ))
5657        error (_ ("Mask is not logical value ('none' or 'inherit')" ));
57-     return  LOGICAL (VECTOR_ELT (vp , VP_MASK ))[ 0 ] ;
58+     return  asRboolean (VECTOR_ELT (vp , VP_MASK ));
5859}
5960
6061double  viewportXScaleMin (SEXP  vp ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments