Fix wrapsizer min size calculation

Fix the `wxWrapSizer::CalcMinFromMinor` function: at the end of the
calculation a `sumMinor` variable contain minor size sum without minor
size of a last line, so add `maxMinor` size to the result min size.
This commit is contained in:
Ilya Sinitsyn
2019-03-13 21:03:59 +07:00
parent b10c6ab3a8
commit 6f3ca5805b

View File

@@ -465,7 +465,11 @@ void wxWrapSizer::CalcMinFromMinor(int totMinor)
// No spill over?
if ( !tailSize )
{
// Add minor size of the last line
sumMinor += maxMinor;
break;
}
}
// Now have min size in the opposite direction