security check on parent widget (just in case)

preferencesAboutTextFull
Clément Fauconnier 6 years ago
parent e21fe80331
commit 3a4843f421
  1. 11
      src/gui/UBDockPalette.cpp

@ -510,10 +510,13 @@ void UBDockPalette::moveTabs()
int y = border(); int y = border();
if(eUBDockTabOrientation_Down == mTabsOrientation) if(eUBDockTabOrientation_Down == mTabsOrientation)
{ {
if (mOrientation == eUBDockOrientation_Right) if (mOrientation == eUBDockOrientation_Right)
y = parentWidget()->height() - border()- mTabWidgets.size() * TABSIZE; {
else if (parentWidget())
y = height() - border()- mTabWidgets.size() * TABSIZE; y = parentWidget()->height() - border()- mTabWidgets.size() * TABSIZE;
}
else
y = height() - border()- mTabWidgets.size() * TABSIZE;
} }
mHTab = y; mHTab = y;

Loading…
Cancel
Save