Commit 3520cd5a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

PanelView: Do not crash when the state is transitioning

BUG: 373461


(cherry picked from commit 61e935ea)
parent bd99299a
Pipeline #140601 passed with stage
in 9 minutes and 8 seconds
......@@ -1372,17 +1372,19 @@ void PanelView::updateEnabledBorders()
break;
}
if (x() <= m_screenToFollow->geometry().x()) {
borders &= ~Plasma::FrameSvg::LeftBorder;
}
if (x() + width() >= m_screenToFollow->geometry().x() + m_screenToFollow->geometry().width()) {
borders &= ~Plasma::FrameSvg::RightBorder;
}
if (y() <= m_screenToFollow->geometry().y()) {
borders &= ~Plasma::FrameSvg::TopBorder;
}
if (y() + height() >= m_screenToFollow->geometry().y() + m_screenToFollow->geometry().height()) {
borders &= ~Plasma::FrameSvg::BottomBorder;
if (m_screenToFollow) {
if (x() <= m_screenToFollow->geometry().x()) {
borders &= ~Plasma::FrameSvg::LeftBorder;
}
if (x() + width() >= m_screenToFollow->geometry().x() + m_screenToFollow->geometry().width()) {
borders &= ~Plasma::FrameSvg::RightBorder;
}
if (y() <= m_screenToFollow->geometry().y()) {
borders &= ~Plasma::FrameSvg::TopBorder;
}
if (y() + height() >= m_screenToFollow->geometry().y() + m_screenToFollow->geometry().height()) {
borders &= ~Plasma::FrameSvg::BottomBorder;
}
}
}
......
Supports Markdown
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