diff --git a/dgl/src/SubWidget.cpp b/dgl/src/SubWidget.cpp index 75ca4dad..af1274a2 100644 --- a/dgl/src/SubWidget.cpp +++ b/dgl/src/SubWidget.cpp @@ -139,7 +139,8 @@ void SubWidget::repaint() noexcept if (TopLevelWidget* const topw = getTopLevelWidget()) { if (pData->needsFullViewportForDrawing) - topw->repaint(); + // repaint is virtual and we want precisely the top-level specific implementation, not any higher level + topw->TopLevelWidget::repaint(); else topw->repaint(getConstrainedAbsoluteArea()); }