diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-02 03:02:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-02 03:02:59 +0300 |
commit | d0df36406220717545221b0ed94b9ab4ebb908b3 (patch) | |
tree | 80e033ab6b2691dadef1e3d2e98e9fa0826dde90 /src/gui | |
parent | b96e34946aa326a9f8dfb80ce34cce9fc219405e (diff) | |
download | plus-d0df36406220717545221b0ed94b9ab4ebb908b3.tar.gz plus-d0df36406220717545221b0ed94b9ab4ebb908b3.tar.bz2 plus-d0df36406220717545221b0ed94b9ab4ebb908b3.tar.xz plus-d0df36406220717545221b0ed94b9ab4ebb908b3.zip |
Some fixes after automatic code checking.
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); |