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:
@@ -465,7 +465,11 @@ void wxWrapSizer::CalcMinFromMinor(int totMinor)
|
|||||||
|
|
||||||
// No spill over?
|
// No spill over?
|
||||||
if ( !tailSize )
|
if ( !tailSize )
|
||||||
|
{
|
||||||
|
// Add minor size of the last line
|
||||||
|
sumMinor += maxMinor;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now have min size in the opposite direction
|
// Now have min size in the opposite direction
|
||||||
|
Reference in New Issue
Block a user