Commit e800266532bfa5476b8aa25a1f1c160ae52f9db0
1 parent
1ce37eda
Exists in
master
and in
13 other branches
Minor fix
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
... | ... | @@ -617,7 +617,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass |
617 | 617 | if (!empty($paramData->{'param-drawing-object'}->{'serie-colored-param'})) |
618 | 618 | $colorSerieId = $drawingEltIndex; |
619 | 619 | |
620 | - $xId = ($isScatter && !empty($paramData->{'param-drawing-object'}->{'serie-xaxis-param'})) ? $xIds[$paramData->{'param-drawing-object'}->{'serie-xaxis-param'}] : -1; | |
620 | + $xId = (($isScatter || $isHisto) && !empty($paramData->{'param-drawing-object'}->{'serie-xaxis-param'})) ? $xIds[$paramData->{'param-drawing-object'}->{'serie-xaxis-param'}] : -1; | |
621 | 621 | |
622 | 622 | switch ($paramData->{'param-drawing-type'}) { |
623 | 623 | case 'serie': | ... | ... |