Skip to content

Commit

Permalink
handle "XType:" messages including font stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 26, 2024
1 parent b49af91 commit ae794fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/PDL/Graphics/Gnuplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7471,6 +7471,7 @@ sub _printGnuplotPipe
our $cp_serial = 0;

my $qt_re = qr/^qt\..*/m;
my $xtype_re = qr/^XType:.*/m;
sub _checkpoint {
my $this = shift;
my $suffix = shift || "main";
Expand Down Expand Up @@ -7603,7 +7604,7 @@ EOM
# that some warnings come with a line specifier and others don't.

WARN: while( $fromerr =~ m/^(\s*(line \d+\:\s*)?[wW]arning\:.*)$/m or
$fromerr =~ m/$qt_re/ or
$fromerr =~ m/$xtype_re|$qt_re/ or
$fromerr =~ m/^Populating font family aliases took/m # CED - Quicktime on MacOS Catalina throws a warning marked as an error. Stupid.
) {
if ($2) {
Expand All @@ -7613,7 +7614,7 @@ EOM
$a =~ s/^\s*line \d+\:/Gnuplot:/m;
carp $a if($printwarnings);
} else {
$fromerr =~ s/$qt_re//;
$fromerr =~ s/$xtype_re|$qt_re//;
last WARN unless $fromerr =~ s/^(\s*(line \d+\:\s*)?[wW](arning\:.*(\n|$)))//m;
carp "Gnuplot w$3\n" if($printwarnings);
}
Expand Down

0 comments on commit ae794fe

Please sign in to comment.