]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
GTK+ just won't let you uncheck any radiobutton that belongs to a group.
[wxWidgets.git] / src / common / sizer.cpp
index a6b6b4920bb7c5ae2359791f6f4536064e989aa5..ebf81ecc1f267c5cadf75e99d9ce5fd66494a99b 100644 (file)
@@ -582,6 +582,7 @@ bool wxSizerItem::IsShown() const
             return m_window->IsShown();
 
         case Item_Sizer:
+        {
             // arbitrarily decide that if at least one of our elements is
             // shown, so are we (this arbitrariness is the reason for
             // deprecating this function)
@@ -594,6 +595,7 @@ bool wxSizerItem::IsShown() const
                     return true;
             }
             return false;
+        }
 
         case Item_Spacer:
             return m_spacer->IsShown();
@@ -2332,7 +2334,7 @@ wxSize wxBoxSizer::CalcMin()
 
     // Using the max ratio ensures that the min size is big enough for all
     // items to have their min size and satisfy the proportions among them.
-    SizeInMajorDir(m_minSize) += maxMinSizeToProp*m_totalProportion;
+    SizeInMajorDir(m_minSize) += (int)(maxMinSizeToProp*m_totalProportion);
 
     return m_minSize;
 }