Skip to content

Commit c3c5c5b

Browse files
committed
Fix for crash when updating plot
1 parent 5361880 commit c3c5c5b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/TOF/src/TrendingCalibDiagnostics.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ void TrendingCalibDiagnostics::generatePlots()
216216
title->SetBBoxCenterX(c->GetBBoxCenter().fX);
217217
// It will have an effect only after invoking Draw again.
218218
title->Draw();
219+
c->Modified();
220+
c->Update();
219221
} else {
220222
ILOG(Error, Devel) << "Could not get the title TPaveText of the plot '" << plot.name << "'." << ENDM;
221223
}

Modules/TOF/src/TrendingCalibLHCphase.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ void TrendingCalibLHCphase::generatePlots()
186186
title->SetBBoxCenterX(c->GetBBoxCenter().fX);
187187
// It will have an effect only after invoking Draw again.
188188
title->Draw();
189+
c->Modified();
190+
c->Update();
189191
} else {
190192
ILOG(Error, Devel) << "Could not get the title TPaveText of the plot '" << plot.name << "'." << ENDM;
191193
}

0 commit comments

Comments
 (0)