projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23b1018
)
simplified code (removed 2 unnecessary tests) in CalcMin(), no real changes
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 14 Mar 2005 22:26:56 +0000
(22:26 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 14 Mar 2005 22:26:56 +0000
(22:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32831
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/sizer.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/sizer.cpp
b/src/common/sizer.cpp
index 51fb38a92629a8a1dd27e891c2f0d2411987ae84..f6ef4e0cbc5cc6d65b7e3c02dac3b1d4eedd7847 100644
(file)
--- a/
src/common/sizer.cpp
+++ b/
src/common/sizer.cpp
@@
-1469,11
+1469,12
@@
wxSize wxBoxSizer::CalcMin()
{
wxSizerItem *item = node->GetData();
- if (item->IsShown())
+ if ( item->IsShown() )
+ {
item->CalcMin(); // result is stored in the item
- if (item->IsShown() && item->GetProportion() != 0)
m_stretchable += item->GetProportion();
+ }
node = node->GetNext();
}