Commit 3a4843f4 authored by Clément Fauconnier's avatar Clément Fauconnier

security check on parent widget (just in case)

parent e21fe803
...@@ -511,7 +511,10 @@ void UBDockPalette::moveTabs() ...@@ -511,7 +511,10 @@ void UBDockPalette::moveTabs()
if(eUBDockTabOrientation_Down == mTabsOrientation) if(eUBDockTabOrientation_Down == mTabsOrientation)
{ {
if (mOrientation == eUBDockOrientation_Right) if (mOrientation == eUBDockOrientation_Right)
{
if (parentWidget())
y = parentWidget()->height() - border()- mTabWidgets.size() * TABSIZE; y = parentWidget()->height() - border()- mTabWidgets.size() * TABSIZE;
}
else else
y = height() - border()- mTabWidgets.size() * TABSIZE; y = height() - border()- mTabWidgets.size() * TABSIZE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment