From 275d5e336f8194888491545d3193146828f8f14f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 13 Oct 2018 20:54:50 +0100 Subject: [PATCH] Fix issue with component children disappearing when canvas origin not in view. --- eeschema/sch_painter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index 844bcf9820..2cc3e3f15c 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -246,6 +246,8 @@ void SCH_PAINTER::draw( LIB_PART *aComp, int aLayer, bool aDrawFields, int aUnit for( auto& item : aComp->GetDrawItems() ) visitItem( item, true ); + m_gal->AdvanceDepth(); + for( auto& item : aComp->GetDrawItems() ) visitItem( item, false ); }