From: Vadim Zeitlin Date: Mon, 26 Sep 2005 00:31:47 +0000 (+0000) Subject: use wxIsNullDouble instead of comparing m_ration with 0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2fb18bf45bcf391a8eb973886072dc67893e9bbe use wxIsNullDouble instead of comparing m_ration with 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 892ae3ebcf..a2218c3933 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -20,6 +20,7 @@ #ifndef WX_PRECOMP #include "wx/string.h" #include "wx/intl.h" + #include "wx/math.h" #endif // WX_PRECOMP #include "wx/sizer.h" @@ -265,7 +266,7 @@ wxSize wxSizerItem::CalcMin() // if we have to preserve aspect ratio _AND_ this is // the first-time calculation, consider ret to be initial size - if ((m_flag & wxSHAPED) && !m_ratio) + if ( (m_flag & wxSHAPED) && wxIsNullDouble(m_ratio) ) SetRatio(m_minSize); } else if ( IsWindow() )