Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
kicad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
KiCad
KiCad Source Code
kicad
Commits
55612055
Commit
55612055
authored
1 year ago
by
dsa-t
Browse files
Options
Downloads
Patches
Plain Diff
SVG plotter: fix hidden text orientation when plot is mirrored.
Fixes
#15422
parent
ea65a5a8
No related branches found
No related tags found
No related merge requests found
Pipeline
#969181644
passed
1 year ago
Stage: build
Stage: test
Stage: report
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/plotters/SVG_plotter.cpp
+4
-4
4 additions, 4 deletions
common/plotters/SVG_plotter.cpp
with
4 additions
and
4 deletions
common/plotters/SVG_plotter.cpp
+
4
−
4
View file @
55612055
...
...
@@ -828,16 +828,16 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
if
(
!
aOrient
.
IsZero
()
)
{
fprintf
(
m_outputFile
,
"<g transform=
\"
rotate(%f %.*f %.*f)
\"
>
\n
"
,
-
aOrient
.
AsDegrees
(),
m_precision
,
anchor_pos_dev
.
x
,
m_precision
,
anchor_pos_dev
.
y
);
fprintf
(
m_outputFile
,
"<g transform=
\"
rotate(%f %.*f %.*f)
\"
>
\n
"
,
m_plotMirror
?
aOrient
.
AsDegrees
()
:
-
aOrient
.
AsDegrees
(),
m_precision
,
anchor_pos_dev
.
x
,
m_precision
,
anchor_pos_dev
.
y
);
}
fprintf
(
m_outputFile
,
"<text x=
\"
%.*f
\"
y=
\"
%.*f
\"\n
"
,
m_precision
,
text_pos_dev
.
x
,
m_precision
,
text_pos_dev
.
y
);
/// If the text is mirrored, we should also mirror the hidden text to match
if
(
aSize
.
x
<
0
)
if
(
m_plotMirror
!=
(
aSize
.
x
<
0
)
)
fprintf
(
m_outputFile
,
"transform=
\"
scale(-1 1) translate(%f 0)
\"\n
"
,
-
2
*
text_pos_dev
.
x
);
fprintf
(
m_outputFile
,
...
...
This diff is collapsed.
Click to expand it.
dsa-t
@dsa-t
mentioned in commit
443da994
·
1 year ago
mentioned in commit
443da994
mentioned in commit 443da9943aa45443624082e480d2bc642c89f659
Toggle commit list
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