[haiku-commits] haiku: hrev44718 - src/libs/alm

  • From: clemens.zeidler@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 25 Oct 2012 08:00:53 +0200 (CEST)

hrev44718 adds 1 changeset to branch 'master'
old head: 97d1235cef30c0445af4986d84671b33acb41ee9
new head: 26fbc34f1b8ec7508e5809c7cbae9df27eb879ad

----------------------------------------------------------------------------

26fbc34: Max size constraints can be NULL.

                                     [ czeidler <haiku@xxxxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44718
Commit:      26fbc34f1b8ec7508e5809c7cbae9df27eb879ad
URL:         http://cgit.haiku-os.org/haiku/commit/?id=26fbc34
Author:      czeidler <haiku@xxxxxxxxxxxxxxxxxx>
Date:        Thu Oct 25 05:54:45 2012 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 2 deletions(-)
src/libs/alm/Area.cpp |    6 ++++--

----------------------------------------------------------------------------

diff --git a/src/libs/alm/Area.cpp b/src/libs/alm/Area.cpp
index 3d0a794..cd80cd2 100644
--- a/src/libs/alm/Area.cpp
+++ b/src/libs/alm/Area.cpp
@@ -613,8 +613,10 @@ void
 Area::_UpdateMaxSizeConstraint(BSize max)
 {
        if (!fLayoutItem->IsVisible()) {
-               fMaxContentHeight->SetRightSide(B_SIZE_UNLIMITED);
-               fMaxContentWidth->SetRightSide(B_SIZE_UNLIMITED);
+               if (fMaxContentHeight != NULL)
+                       fMaxContentHeight->SetRightSide(B_SIZE_UNLIMITED);
+               if (fMaxContentWidth != NULL)
+                       fMaxContentWidth->SetRightSide(B_SIZE_UNLIMITED);
                return;
        }
 


Other related posts:

  • » [haiku-commits] haiku: hrev44718 - src/libs/alm - clemens . zeidler