Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
magicseteditor
Commits
1710df85
Commit
1710df85
authored
Sep 21, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: padding_top was added to the bottom instead of the top
parent
2cb138b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/render/text/viewer.cpp
src/render/text/viewer.cpp
+2
-2
No files found.
src/render/text/viewer.cpp
View file @
1710df85
...
@@ -655,14 +655,14 @@ void TextViewer::alignLines(RotatedDC& dc, const vector<CharInfo>& chars, const
...
@@ -655,14 +655,14 @@ void TextViewer::alignLines(RotatedDC& dc, const vector<CharInfo>& chars, const
-
RealSize
(
style
.
padding_left
+
style
.
padding_right
,
style
.
padding_top
+
style
.
padding_bottom
));
-
RealSize
(
style
.
padding_left
+
style
.
padding_right
,
style
.
padding_top
+
style
.
padding_bottom
));
if
(
style
.
paragraph_height
<=
0
)
{
if
(
style
.
paragraph_height
<=
0
)
{
// whole text box alignment
// whole text box alignment
alignParagraph
(
0
,
lines
.
size
(),
chars
,
style
,
RealRect
(
RealPoint
(
0
,
0
),
s
));
alignParagraph
(
0
,
lines
.
size
(),
chars
,
style
,
RealRect
(
RealPoint
(
0
,
style
.
padding_top
),
s
));
}
else
{
}
else
{
// per paragraph alignment
// per paragraph alignment
size_t
start
=
0
;
size_t
start
=
0
;
int
n
=
0
;
int
n
=
0
;
for
(
size_t
last
=
0
;
last
<
lines
.
size
()
;
++
last
)
{
for
(
size_t
last
=
0
;
last
<
lines
.
size
()
;
++
last
)
{
if
(
lines
[
last
].
break_after
!=
BREAK_SOFT
||
last
==
lines
.
size
())
{
if
(
lines
[
last
].
break_after
!=
BREAK_SOFT
||
last
==
lines
.
size
())
{
alignParagraph
(
start
,
last
+
1
,
chars
,
style
,
RealRect
(
0
,
n
*
style
.
paragraph_height
,
s
.
width
,
style
.
paragraph_height
));
alignParagraph
(
start
,
last
+
1
,
chars
,
style
,
RealRect
(
0
,
style
.
padding_top
+
n
*
style
.
paragraph_height
,
s
.
width
,
style
.
paragraph_height
));
start
=
last
+
1
;
start
=
last
+
1
;
++
n
;
++
n
;
}
}
...
...
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