diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/guitable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 9d6eb0926..090588f90 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -314,7 +314,9 @@ void GuiTable::draw(gcn::Graphics* graphics) // First, determine how many rows we need to draw, // and where we should start. - const int rHeight = getRowHeight(); + int rHeight = getRowHeight(); + if (!rHeight) + rHeight = 1; int first_row = -(y / rHeight); if (first_row < 0) |