From eb05d18c0e49b46a1ddc9d4824ca69deb37fd347 Mon Sep 17 00:00:00 2001 From: Rodney Date: Oct 31 2019 01:11:21 +0000 Subject: Merge pull request #2854 from caryoscelus/simplelevel-bbox Fix bounding box computation in TXshSimpleLevel --- diff --git a/toonz/sources/toonzlib/txshsimplelevel.cpp b/toonz/sources/toonzlib/txshsimplelevel.cpp index 54cb44d..9fbf417 100644 --- a/toonz/sources/toonzlib/txshsimplelevel.cpp +++ b/toonz/sources/toonzlib/txshsimplelevel.cpp @@ -2294,9 +2294,8 @@ TRectD TXshSimpleLevel::getBBox(const TFrameId &fid) const { if (!info) return TRectD(); bbox = TRectD(TPointD(info->m_x0, info->m_y0), - TDimensionD(info->m_lx, - info->m_ly)) - // Using lx, ly is less ambiguous - 0.5 * TPointD(info->m_lx, info->m_ly); + TPointD(info->m_x1, info->m_y1)) + - 0.5 * TPointD(info->m_lx, info->m_ly); if (info->m_dpix > 0.0 && info->m_dpiy > 0.0) dpiX = info->m_dpix, dpiY = info->m_dpiy;