moved fTriggerColor toggle state to the proper position.
This commit is contained in:
parent
0e2d880249
commit
33fe4ee5fb
@ -1185,6 +1185,7 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
|
|||||||
fMainCanvas->Update();
|
fMainCanvas->Update();
|
||||||
} else if (x == 't') { // toggle theory color
|
} else if (x == 't') { // toggle theory color
|
||||||
if (fData.size() == 1) { // only do something if there is a single data set
|
if (fData.size() == 1) { // only do something if there is a single data set
|
||||||
|
fToggleColor = !fToggleColor;
|
||||||
if (fToggleColor) {
|
if (fToggleColor) {
|
||||||
fData[0].theory->SetLineColor(kRed);
|
fData[0].theory->SetLineColor(kRed);
|
||||||
fData[0].theory->SetLineWidth(2);
|
fData[0].theory->SetLineWidth(2);
|
||||||
@ -1192,7 +1193,6 @@ void PMusrCanvas::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
|
|||||||
fData[0].theory->SetLineColor(fColorList[0]);
|
fData[0].theory->SetLineColor(fColorList[0]);
|
||||||
fData[0].theory->SetLineWidth(1);
|
fData[0].theory->SetLineWidth(1);
|
||||||
}
|
}
|
||||||
fToggleColor = !fToggleColor;
|
|
||||||
fDataTheoryPad->Modified();
|
fDataTheoryPad->Modified();
|
||||||
fMainCanvas->Update();
|
fMainCanvas->Update();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user