diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/layout.h | 11 | ||||
-rw-r--r-- | src/gui/widgets/table.cpp | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index 49b4815d7..2621f018a 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -173,8 +173,17 @@ class LayoutCell LayoutCell(): mWidget(0), + mHPadding(0), + mVPadding(0), mType(NONE) - { } + { + mExtent[0] = 0; + mExtent[1] = 0; + mAlign[0] = 0; + mAlign[1] = 0; + mNbFill[0] = 0; + mNbFill[1] = 0; + } ~LayoutCell(); diff --git a/src/gui/widgets/table.cpp b/src/gui/widgets/table.cpp index 00f41a760..81efa5d12 100644 --- a/src/gui/widgets/table.cpp +++ b/src/gui/widgets/table.cpp @@ -355,8 +355,8 @@ void GuiTable::draw(gcn::Graphics* graphics) && c == (unsigned)mSelectedColumn && r == (unsigned)mSelectedRow) { - graphics->fillRectangle(gcn::Rectangle(x_offset, y_offset, - width, height)); + graphics->fillRectangle(gcn::Rectangle( + x_offset, y_offset, width, height)); } } graphics->pushClipArea(bounds); |