Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Calligra
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Office
Calligra
Commits
efe7a8a4
Commit
efe7a8a4
authored
10 years ago
by
Sven Langkamp
Committed by
Halla Rempt
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix moving of shapes in groups in shape layers
BUG:308942
parent
e238d50a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
krita/ui/flake/kis_shape_layer.cc
+7
-1
7 additions, 1 deletion
krita/ui/flake/kis_shape_layer.cc
with
7 additions
and
1 deletion
krita/ui/flake/kis_shape_layer.cc
+
7
−
1
View file @
efe7a8a4
...
...
@@ -263,13 +263,19 @@ void KisShapeLayer::slotMoveShapes(const QPointF &diff)
QList
<
QPointF
>
prevPos
;
QList
<
QPointF
>
newPos
;
QList
<
KoShape
*>
shapes
;
foreach
(
KoShape
*
shape
,
shapeManager
()
->
shapes
())
{
if
(
!
dynamic_cast
<
KoShapeGroup
*>
(
shape
))
{
shapes
.
append
(
shape
);
}
}
foreach
(
KoShape
*
shape
,
shapes
)
{
QPointF
pos
=
shape
->
position
();
prevPos
<<
pos
;
newPos
<<
pos
+
diff
;
}
KoShapeMoveCommand
cmd
(
shape
Manager
()
->
shapes
()
,
prevPos
,
newPos
);
KoShapeMoveCommand
cmd
(
shape
s
,
prevPos
,
newPos
);
cmd
.
redo
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment