diff --git a/graf2d/gpad/v7/src/TPad.cxx b/graf2d/gpad/v7/src/TPad.cxx index ddc37bac539525f7216d64e44ed8739a93544a6e..882d74f3bd9744597b2bd5e648cac8b7fa75d4af 100644 --- a/graf2d/gpad/v7/src/TPad.cxx +++ b/graf2d/gpad/v7/src/TPad.cxx @@ -19,6 +19,7 @@ #include "ROOT/TPadExtent.hxx" #include "ROOT/TPadPos.hxx" +#include <cassert> #include <limits> ROOT::Experimental::TPadBase::~TPadBase() = default; @@ -54,3 +55,8 @@ ROOT::Experimental::TPadBase::Divide(int nHoriz, int nVert, const TPadExtent &pa } ROOT::Experimental::TPad::~TPad() = default; + +ROOT::Experimental::TPadDrawable::TPadDrawable(std::unique_ptr<TPad> &&pPad, TPadBase& parent): fPad(std::move(pPad)), fOpts(parent) +{ + assert(&fPad->GetParent() == &parent && "Parent mismatch!"); +}