X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Frowitemowner.cpp;h=8970f45a73727207fae763043efbb6df66467c21;hp=6f7cbb269663ecb36e9c61dec225051c945a8aea;hb=bc01bb31fb03f69c8ceef57676b3399d7a08dcd9;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5 diff --git a/pv/view/rowitemowner.cpp b/pv/view/rowitemowner.cpp index 6f7cbb26..8970f45a 100644 --- a/pv/view/rowitemowner.cpp +++ b/pv/view/rowitemowner.cpp @@ -20,8 +20,8 @@ #include -#include "rowitem.h" -#include "rowitemowner.h" +#include "rowitem.hpp" +#include "rowitemowner.hpp" using std::max; using std::make_pair; @@ -94,7 +94,8 @@ RowItemOwner::const_iterator RowItemOwner::end() const pair RowItemOwner::v_extents() const { - pair extents(0, 0); + pair extents(INT_MAX, INT_MIN); + for (const shared_ptr r : child_items()) { assert(r); if (!r->enabled())