File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/library/grDevices/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1661,12 +1661,13 @@ const char *RQuartz_LookUpFontName(int fontface, const char *fontfamily)
16611661 PROTECT_INDEX index ;
16621662 PROTECT (ns = R_FindNamespace (ScalarString (mkChar ("grDevices" ))));
16631663 PROTECT_WITH_INDEX (env = findVar (install (".Quartzenv" ), ns ), & index );
1664- if (TYPEOF (env ) == PROMSXP )
1664+ if (TYPEOF (env ) == PROMSXP ) {
16651665 if (NoDevices ()) {
16661666 REPROTECT (env = eval (env , ns ), index );
16671667 } else {
16681668 REPROTECT (env = Rf_eval_with_gd (env , ns , NULL ), index );
16691669 }
1670+ }
16701671 PROTECT (db = findVar (install (".Quartz.Fonts" ), env ));
16711672 PROTECT (names = getAttrib (db , R_NamesSymbol ));
16721673 if (* fontfamily ) {
@@ -2689,7 +2690,7 @@ static SEXP RQuartz_setPattern(SEXP pattern, pDevDesc dd) {
26892690
26902691 /* Play the pattern function to draw the pattern on the pattern layer*/
26912692 SEXP R_fcall = PROTECT (lang1 (R_GE_tilingPatternFunction (pattern )));
2692- Rf_eval_with_gd (R_fcall , R_GlobalEnv , desc2GEdesc (dd ));
2693+ Rf_eval_with_gd (R_fcall , R_GlobalEnv , desc2GEDesc (dd ));
26932694 UNPROTECT (1 );
26942695
26952696 xd -> appendingPattern = savedPattern ;
You can’t perform that action at this time.
0 commit comments