mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 21:26:12 +00:00
Fix possible division by zero in edge cases
* Reported by Coverity Scan
This commit is contained in:
@@ -364,7 +364,7 @@ void RDHeaderView::cacheSectionMinSizes()
|
||||
|
||||
void RDHeaderView::resizeSectionsWithHints()
|
||||
{
|
||||
if(m_sectionMinSizes.count() == 0)
|
||||
if(m_sectionMinSizes.count() == 0 || m_sectionStretchHintTotal <= 0)
|
||||
return;
|
||||
|
||||
QVector<int> sizes = m_sectionMinSizes;
|
||||
|
||||
Reference in New Issue
Block a user