diff options
author | Sebastian Geerken <devnull@localhost> | 2014-12-13 12:23:25 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-12-13 12:23:25 +0100 |
commit | cf42b1f93f3db9e97724988f8929d5f735b037fb (patch) | |
tree | b4cdfc24cd8592e75f1542c87dccabe62f65df4a /dw/stackingcontextmgr.cc | |
parent | 837a7d55a0f4a2005ac679dda4e5c378e91b500a (diff) |
Bug fix related to z-indices iteration.
Diffstat (limited to 'dw/stackingcontextmgr.cc')
-rw-r--r-- | dw/stackingcontextmgr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/stackingcontextmgr.cc b/dw/stackingcontextmgr.cc index 9761e402..ac025534 100644 --- a/dw/stackingcontextmgr.cc +++ b/dw/stackingcontextmgr.cc @@ -68,8 +68,8 @@ void StackingContextMgr::addChildSCWidget (Widget *widget) pos = findZIndex (widget->getStyle()->zIndex, false); DBG_OBJ_MSGF ("common.scm", 1, "pos = %d", pos); - for (int i = numZIndices - 2; i >= pos; i--) { - zIndices[i] = zIndices[i + 1]; + for (int i = numZIndices - 1; i >= pos + 1; i--) { + zIndices[i] = zIndices[i - 1]; DBG_OBJ_ARRSET_NUM ("zIndex", i, zIndices[i]); } |