Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
a12c5904
Commit
a12c5904
authored
Jun 24, 2011
by
Thorsten Zachmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "One more try to fix shape-sorting."
This reverts commit c1bd38582fdcaa961a45de335765ce54f0a3c350.
parent
af3d329d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
libs/flake/KoShape.cpp
libs/flake/KoShape.cpp
+1
-1
libs/flake/tests/TestShapeReorderCommand.cpp
libs/flake/tests/TestShapeReorderCommand.cpp
+13
-13
No files found.
libs/flake/KoShape.cpp
View file @
a12c5904
...
...
@@ -874,7 +874,7 @@ void KoShape::setTextRunAroundSide(TextRunAroundSide side, Through runThrought)
if
(
runThrought
==
Background
)
{
setRunThrough
(
-
1
);
}
else
{
setRunThrough
(
0
);
// run-through=Foreground is the default
setRunThrough
(
1
);
}
}
else
{
setRunThrough
(
0
);
...
...
libs/flake/tests/TestShapeReorderCommand.cpp
View file @
a12c5904
...
...
@@ -91,8 +91,8 @@ void TestShapeReorderCommand::testRunThroughSorting()
QCOMPARE
(
shapes
.
indexOf
(
&
shape1
),
2
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape2
),
0
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape3
),
3
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape4
),
4
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape3
),
4
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape4
),
3
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape5
),
1
);
}
...
...
@@ -144,17 +144,17 @@ void TestShapeReorderCommand::testParentChildSorting()
qSort
(
shapes
.
begin
(),
shapes
.
end
(),
KoShape
::
compareShapeZIndex
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape1
),
2
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape2
),
0
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape3
),
7
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape4
),
6
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape5
),
5
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape6
),
8
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape7
),
9
);
QCOMPARE
(
shapes
.
indexOf
(
&
container1
),
1
);
QCOMPARE
(
shapes
.
indexOf
(
&
container2
),
4
);
QCOMPARE
(
shapes
.
indexOf
(
&
container3
),
3
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape1
),
3
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape2
),
2
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape3
),
9
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape4
),
7
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape5
),
6
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape6
),
0
);
QCOMPARE
(
shapes
.
indexOf
(
&
shape7
),
1
);
QCOMPARE
(
shapes
.
indexOf
(
&
container1
),
8
);
QCOMPARE
(
shapes
.
indexOf
(
&
container2
),
5
);
QCOMPARE
(
shapes
.
indexOf
(
&
container3
),
4
);
}
void
TestShapeReorderCommand
::
testBringToFront
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment