Add operator/(wxSize, double)

For some reason, while both operator*(wxSize, double) and
wxSize::operator/=(double) existed, this one did not, which was
unexpected, so add it too.
This commit is contained in:
Vadim Zeitlin
2021-11-20 22:06:28 +01:00
parent 9941531efc
commit 2bbe126dca
3 changed files with 19 additions and 0 deletions

View File

@@ -48,4 +48,6 @@ TEST_CASE("wxSize::Operators", "[size]")
CHECK( s3 == wxSize(2, 4) );
s3 /= 2;
CHECK( s3 == s1 );
CHECK( wxSize(6, 9) / 1.5 == wxSize(4, 6) );
}