summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 73b826b..b4905f2 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1432,7 +1432,7 @@ void BScreen::clearStrut(Strut *str) {
1432 clearStrut(str->next()); 1432 clearStrut(str->next());
1433 int head = str->head() ? str->head() - 1 : 0; 1433 int head = str->head() ? str->head() - 1 : 0;
1434 /* The number of heads may have changed, be careful. */ 1434 /* The number of heads may have changed, be careful. */
1435 if (head < numHeads()) 1435 if (head < (numHeads() ? numHeads() : 1))
1436 m_head_areas[head]->clearStrut(str); 1436 m_head_areas[head]->clearStrut(str);
1437 // str is invalid now 1437 // str is invalid now
1438} 1438}