Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
d31344d7
Commit
d31344d7
authored
Sep 29, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct metafile bounds
parent
8312cce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
DesktopEditor/raster/Metafile/MetaFile.cpp
DesktopEditor/raster/Metafile/MetaFile.cpp
+5
-0
No files found.
DesktopEditor/raster/Metafile/MetaFile.cpp
View file @
d31344d7
...
...
@@ -217,6 +217,11 @@ namespace MetaFile
double
dX
,
dY
,
dW
,
dH
;
GetBounds
(
&
dX
,
&
dY
,
&
dW
,
&
dH
);
if
(
dW
<
0
)
dW
=
-
dW
;
if
(
dH
<
0
)
dH
=
-
dH
;
if
(
nWidth
<
0
)
nWidth
=
dW
;
nHeight
=
(
int
)((
double
)
nWidth
*
dH
/
dW
);
}
...
...
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