summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/guitable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 64a9d6ab6..15765763e 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -100,8 +100,8 @@ GuiTable::GuiTable(const Widget2 *const widget,
mTopWidget(nullptr),
mActionListeners(),
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
- mSelectedRow(0),
- mSelectedColumn(0),
+ mSelectedRow(-1),
+ mSelectedColumn(-1),
mLinewiseMode(false),
mWrappingEnabled(false),
mOpaque(opacity)
@@ -352,7 +352,7 @@ void GuiTable::draw(gcn::Graphics* graphics)
widget->setDimension(bounds);
- if (mSelectedRow > 0)
+ if (mSelectedRow > -1)
{
mHighlightColor.a = static_cast<int>(mAlpha * 255.0F);
graphics->setColor(mHighlightColor);