Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
inkscape
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1,115
Issues
1,115
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
101
Merge Requests
101
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Inkscape
inkscape
Commits
1a07842b
Commit
1a07842b
authored
May 03, 2019
by
Nathan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds out of bound check for selecting text on path
Fixes
inbox#420
Cherry-pick from
87de3cf4
(1.0alpha)
parent
f5a38658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/libnrtype/Layout-TNG-OutIter.cpp
src/libnrtype/Layout-TNG-OutIter.cpp
+3
-1
No files found.
src/libnrtype/Layout-TNG-OutIter.cpp
View file @
1a07842b
...
...
@@ -307,8 +307,10 @@ Geom::Rect Layout::characterBoundingBox(iterator const &it, double *rotation) co
if
(
_path_fitted
)
{
double
cluster_half_width
=
0.0
;
for
(
int
glyph_index
=
_characters
[
char_index
].
in_glyph
;
_glyphs
[
glyph_index
].
in_character
==
char_index
;
glyph_index
++
)
for
(
int
glyph_index
=
_characters
[
char_index
].
in_glyph
;
_glyphs
.
size
()
!=
glyph_index
;
glyph_index
++
)
{
if
(
_glyphs
[
glyph_index
].
in_character
!=
char_index
)
break
;
cluster_half_width
+=
_glyphs
[
glyph_index
].
width
;
}
cluster_half_width
*=
0.5
;
double
midpoint_offset
=
_characters
[
char_index
].
span
(
this
).
x_start
+
_characters
[
char_index
].
x
+
cluster_half_width
;
...
...
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