--curvestyle now overrides --curvestyleall

This is how it was supposed to work, but apparently it didn't work this way:
--curvestyleall options were active for ALL the curves
This commit is contained in:
Dima Kogan 2017-09-30 22:53:43 -07:00
parent 5758865246
commit fec440c8b3

View File

@ -979,7 +979,8 @@ sub updateCurveOptions
$usingoptions = "using 1:" . join(':', @rest);
}
$curve->{options} = "$histoptions $usingoptions $titleoption $curve->{extraoptions} $options{curvestyleall}";
$curve->{options} = "$histoptions $usingoptions $titleoption $curve->{extraoptions}";
}
sub getCurve
@ -998,7 +999,11 @@ sub getCurve
if( !exists $curveIndices{$id} )
{
push @curves, {extraoptions => ' ',
push @curves, {# if we have a catch-all style and no specific style, use
# the catch-all style
extraoptions => (!exists $options{curvestyle_hash}{$id} &&
exists $options{curvestyleall}) ?
"$options{curvestyleall} " : ' ',
datastring => '',
datastring_meta => [],
datastring_offset => 0}; # push a curve with no data and no options