Skip to content

Commit 867e2ce

Browse files
committed
Implement LimitLine::PaintOn()
1 parent c4e3966 commit 867e2ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

graf2d/asimage/inc/TASPaletteEditor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TASPaletteEditor : public TPaletteEditor, public TGMainFrame {
5656
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
5757
public:
5858
LimitLine(Coord_t x, Coord_t y1, Coord_t y2, TASPaletteEditor *gui);
59-
void Paint(Option_t *option = "") override;
59+
void PaintOn(TVirtualPad *pad, Option_t *option = "") override;
6060
};
6161

6262
Double_t fMinValue; ///< min value of image

graf2d/asimage/src/TASPaletteEditor.cxx

+4-4
Original file line numberDiff line numberDiff line change
@@ -938,12 +938,12 @@ TASPaletteEditor::LimitLine::LimitLine(Coord_t x, Coord_t y1, Coord_t y2,
938938
////////////////////////////////////////////////////////////////////////////////
939939
/// Paint the limit lines.
940940

941-
void TASPaletteEditor::LimitLine::Paint(Option_t *option)
941+
void TASPaletteEditor::LimitLine::PaintOn(TVirtualPad *pad, Option_t *option)
942942
{
943-
fY1 = gPad->GetUymin();
944-
fY2 = gPad->GetUymax();
943+
fY1 = pad->GetUymin();
944+
fY2 = pad->GetUymax();
945945

946-
TLine::Paint(option);
946+
TLine::PaintOn(pad, option);
947947
}
948948

949949
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)