summaryrefslogtreecommitdiff
path: root/src/gui/widgets/table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/table.cpp')
-rw-r--r--src/gui/widgets/table.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/widgets/table.cpp b/src/gui/widgets/table.cpp
index 465fbc61..a74fc09e 100644
--- a/src/gui/widgets/table.cpp
+++ b/src/gui/widgets/table.cpp
@@ -173,18 +173,16 @@ void GuiTable::setLinewiseSelection(bool linewise)
int GuiTable::getRowHeight() const
{
- if (mModel)
- return mModel->getRowHeight() + 1; // border
- else
+ if (!mModel)
return 0;
+ return mModel->getRowHeight() + 1; // border
}
int GuiTable::getColumnWidth(int i) const
{
- if (mModel)
- return mModel->getColumnWidth(i) + 1; // border
- else
+ if (!mModel)
return 0;
+ return mModel->getColumnWidth(i) + 1; // border
}
void GuiTable::setSelectedRow(int selected)