Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoShape.cpp
Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Line(s) | |||||
562 | bool KoShape::compareShapeZIndex(KoShape *s1, KoShape *s2) | 562 | bool KoShape::compareShapeZIndex(KoShape *s1, KoShape *s2) | ||
563 | { | 563 | { | ||
564 | /** | 564 | /** | ||
565 | * WARNING: Our definition of zIndex is not yet compatible with SVG2's | 565 | * WARNING: Our definition of zIndex is not yet compatible with SVG2's | ||
566 | * definition. In SVG stacking context of groups with the same | 566 | * definition. In SVG stacking context of groups with the same | ||
567 | * zIndex are **merged**, while in Krita the contents of groups | 567 | * zIndex are **merged**, while in Krita the contents of groups | ||
568 | * is never merged. One group will always below than the other. | 568 | * is never merged. One group will always below than the other. | ||
569 | * Therefore, when zIndex of two groups inside the same parent | 569 | * Therefore, when zIndex of two groups inside the same parent | ||
570 | * coinside, the resulting painting order in Krita is | 570 | * coincide, the resulting painting order in Krita is | ||
571 | * **UNDEFINED**. | 571 | * **UNDEFINED**. | ||
572 | * | 572 | * | ||
573 | * To avoid this trouble we use KoShapeReorderCommand::mergeInShape() | 573 | * To avoid this trouble we use KoShapeReorderCommand::mergeInShape() | ||
574 | * inside KoShapeCreateCommand. | 574 | * inside KoShapeCreateCommand. | ||
575 | */ | 575 | */ | ||
576 | 576 | | |||
577 | /** | 577 | /** | ||
578 | * The algorithm below doesn't correctly handle the case when the two pointers actually | 578 | * The algorithm below doesn't correctly handle the case when the two pointers actually | ||
▲ Show 20 Lines • Show All 1967 Lines • Show Last 20 Lines |