From d0df36406220717545221b0ed94b9ab4ebb908b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Apr 2011 03:02:59 +0300 Subject: Some fixes after automatic code checking. --- src/gui/widgets/layout.h | 11 ++++++++++- src/gui/widgets/table.cpp | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src/gui') 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); -- cgit v1.2.3-70-g09d2