PatchCanvas: Fix new groups appearing outside canvas bounds

This commit is contained in:
falkTX 2013-04-14 21:22:03 +01:00
parent 44767321c0
commit 846ce6e213
1 changed files with 2 additions and 0 deletions

View File

@ -442,6 +442,8 @@ def addGroup(group_id, group_name, split=SPLIT_UNDEF, icon=ICON_APPLICATION):
horizontal = bool(icon == ICON_HARDWARE or icon == ICON_LADISH_ROOM)
group_box.setPos(CanvasGetNewGroupPos(horizontal))
group_box.checkItemPos()
canvas.last_z_value += 1
group_box.setZValue(canvas.last_z_value)