** Changed in: nux
       Status: Triaged => Invalid

** Changed in: unity
       Status: Triaged => Invalid

** Changed in: nux (Ubuntu)
       Status: Triaged => Invalid

** Changed in: unity (Ubuntu)
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dp-unity
https://bugs.launchpad.net/bugs/729142

Title:
  creating a nux::TabView results in a segfault

Status in Nux:
  Invalid
Status in Unity:
  Invalid
Status in “nux” package in Ubuntu:
  Invalid
Status in “unity” package in Ubuntu:
  Invalid

Bug description:
  the TabView widget segfaults in nux::TabView::PostLayoutManagement.

  It occurs from this block, at line 298 in Nux/TabView.cpp

  if (m_CompositionLayout)
      {
        Geometry base = m_CompositionLayout->GetGeometry();
        base.OffsetPosition (-TAB_X_BORDER, -TAB_HEIGHT);
        base.OffsetSize (2 * TAB_X_BORDER, TAB_HEIGHT + TAB_Y_BORDER);
        Area::SetGeometry (base);
      }

      Geometry base = GetGeometry();

      int tab_x = m_CompositionLayout->GetGeometry().x +
  m_CompositionLayout->GetGeometry().GetWidth() - 2 * TAB_BUTTON_WIDTH;
      int tab_y = base.y;

  if m_CompositionalLayout is null, obviously this fails- and it is null
  when the TabView is first created. I'm not sure what tab_x should
  actually be by default to patch this, but it should be trivial to fix
  for someone who knows what that value should really be initialized to.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nux/+bug/729142/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to