summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 23:39:39 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 23:39:39 +0300
commitc8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e (patch)
treeb86d8ca191c3bcf4a03aba19198316424cb08a08 /src/gui
parente998c784e0a3943a6a85be4f82c5a1b8f027b838 (diff)
downloadplus-c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e.tar.gz
plus-c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e.tar.bz2
plus-c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e.tar.xz
plus-c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e.zip
Change imageset offset work not like default offset, but as additional offset.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/layout.cpp b/src/gui/widgets/layout.cpp
index ad474cf63..3dc4eb038 100644
--- a/src/gui/widgets/layout.cpp
+++ b/src/gui/widgets/layout.cpp
@@ -335,7 +335,7 @@ void LayoutArray::reflow(int nx, int ny, int nw, int nh)
LayoutCell *cell = mCells[gridY][gridX];
if (cell && cell->mType != LayoutCell::NONE)
{
- int dx = x, dy = y, dw, dh;
+ int dx = x, dy = y, dw = 0, dh = 0;
align(dx, dw, 0, *cell, &widths[gridX]);
align(dy, dh, 1, *cell, &heights[gridY]);
cell->reflow(dx, dy, dw, dh);