From c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2011 23:39:39 +0300 Subject: Change imageset offset work not like default offset, but as additional offset. --- src/gui/widgets/layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/layout.cpp') 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); -- cgit v1.2.3-60-g2f50