Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make syntax more clear when creating pad painter
  • Loading branch information
linev committed Jun 26, 2017
commit fac17835ce4b1470ead2ecdbf5db8a86586c22cd
3 changes: 2 additions & 1 deletion graf2d/gpad/src/TCanvas.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,8 @@ void TCanvas::CreatePainter()
//Even for batch mode painter is still required, just to delegate
//some calls to batch "virtual X".
if (!UseGL() || fBatch) {
fPainter = !fCanvasImp ? 0 : fCanvasImp->CreatePadPainter();
fPainter = 0;
if (fCanvasImp) fPainter = fCanvasImp->CreatePadPainter();
if (!fPainter) fPainter = new TPadPainter; // Do not need plugin manager for this!
} else {
fPainter = TVirtualPadPainter::PadPainter("gl");
Expand Down