From 5101dc00ca108cd0d9f0e0a98ff1de0f88228931 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 25 Aug 2000 15:00:50 +0000 Subject: [PATCH] Let's see where this commit will end up :-) Corrected reported wxSizer bug (wrong minimal size when option flag > 1) Updated changes.txt and wxGTK spec. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/gtk/changes.txt | 26 ++++++++++++++++++++++---- src/common/sizer.cpp | 18 ++++++------------ wxGTK.spec | 2 +- 3 files changed, 29 insertions(+), 17 deletions(-) diff --git a/docs/gtk/changes.txt b/docs/gtk/changes.txt index fe1eb4f1fb..f37d66dc3d 100644 --- a/docs/gtk/changes.txt +++ b/docs/gtk/changes.txt @@ -1,8 +1,27 @@ -22nd July 2000: wxWindows 2.2.1 released +XXth September: wxWindows 2.2.2 released + +Fixed wxSizer bug that made items with option +flags greater than 1 report a wrongn size. + +20th August 2000: wxWindows 2.2.1 released Minor build fixes. +Use the wxCommmandEvent::IsChecked() function for checkable +menu items. This mean that the m_int parameter no longer +contains the ID of the menu! + +Fixed major problems in ODBC logging code. This change is +binary backward incompatible. + +Fixed reentry problems in DnD code. + +Changed PostScript code so that it can handle a higher +resolution (720dpi). + +Minor improvements to wxGrid code. + Corrected guffow-scrolling so that no surplus expose events are generated. @@ -12,13 +31,12 @@ Minor correction to wxDC::DrawRoundedRectangle. Added support for and menu accelerators. -Use the wxCommmandEvent::IsChecked() function for checkable -menu items. - Made wxComboBox case-sensitive. Minor correction to doc-view architecture. +Minor wxCommandLineParser changes. + 10th July 2000: wxWindows 2.2.0 released Added code for writing BMP images. diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 0802fea039..a412637448 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -897,28 +897,22 @@ wxSize wxBoxSizer::CalcMin() { wxSizerItem *item = (wxSizerItem*) node->Data(); - int weight = 1; - if (item->GetOption()) - weight = item->GetOption(); - + m_stretchable += item->GetOption(); + wxSize size( item->CalcMin() ); if (m_orient == wxHORIZONTAL) { - m_minWidth += (size.x * weight); + m_minWidth += size.x; m_minHeight = wxMax( m_minHeight, size.y ); } else { - m_minHeight += (size.y * weight); + m_minHeight += size.y; m_minWidth = wxMax( m_minWidth, size.x ); } - if (item->GetOption()) - { - m_stretchable += weight; - } - else + if (item->GetOption() == 0) { if (m_orient == wxVERTICAL) { @@ -926,7 +920,7 @@ wxSize wxBoxSizer::CalcMin() m_fixedWidth = wxMax( m_fixedWidth, size.x ); } else - { + { m_fixedWidth += size.x; m_fixedHeight = wxMax( m_fixedHeight, size.y ); } diff --git a/wxGTK.spec b/wxGTK.spec index bc8734c2ae..cfefdae9c1 100644 --- a/wxGTK.spec +++ b/wxGTK.spec @@ -9,7 +9,7 @@ Version: %{ver} Release: %{rel} Copyright: wxWindows Licence Group: X11/Libraries -Source: wxGTK-%{ver}.tgz +Source: wxGTK-%{ver}.tar.gz URL: http://wxwindows.org Packager: Robert Roebling