Changing HIERARCHY also changes GEOMETRY.

Fixes #237.
This commit is contained in:
Jürg Lehni 2013-06-13 08:47:45 -07:00
parent 5250281ab1
commit 7f6ac3d8af

View file

@ -34,7 +34,10 @@ var ChangeFlag = {
// Shortcuts to often used ChangeFlag values including APPEARANCE
var Change = {
HIERARCHY: ChangeFlag.HIERARCHY | ChangeFlag.APPEARANCE,
// HIERARCHY also changes GEOMETRY, since removing children from groups
// change bounds
HIERARCHY: ChangeFlag.HIERARCHY | ChangeFlag.GEOMETRY
| ChangeFlag.APPEARANCE,
GEOMETRY: ChangeFlag.GEOMETRY | ChangeFlag.APPEARANCE,
STROKE: ChangeFlag.STROKE | ChangeFlag.STYLE | ChangeFlag.APPEARANCE,
STYLE: ChangeFlag.STYLE | ChangeFlag.APPEARANCE,