Skip to content

Commit 60f3f44

Browse files
committed
Try to fix possible crash in cee3523
This was spotted and mentioned by @mgrojo here: cee3523#commitcomment-37302574 It does not reproduce on my system, so this is my best attempt at fixing this issue.
1 parent 498efd7 commit 60f3f44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ExtendedTableWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ void ExtendedTableWidget::vscrollbarChanged(int value)
869869

870870
int ExtendedTableWidget::numVisibleRows() const
871871
{
872-
if(!isVisible())
872+
if(!isVisible() || !model() || !verticalHeader())
873873
return 0;
874874

875875
// Get the row numbers of the rows currently visible at the top and the bottom of the widget

0 commit comments

Comments
 (0)