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
ef69fc4b
Commit
ef69fc4b
authored
Dec 16, 2016
by
Sergey Konovalov
Committed by
GitHub
Dec 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from ONLYOFFICE/hotfix/v4.2.3
Hotfix/v4.2.3
parents
f925e5ca
6e3b7b11
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
DesktopEditor/doctrenderer/doctrenderer.cpp
DesktopEditor/doctrenderer/doctrenderer.cpp
+4
-3
DesktopEditor/graphics/MetafileToGraphicsRenderer.h
DesktopEditor/graphics/MetafileToGraphicsRenderer.h
+1
-1
PdfReader/PdfReader.cpp
PdfReader/PdfReader.cpp
+5
-1
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+1
-1
No files found.
DesktopEditor/doctrenderer/doctrenderer.cpp
View file @
ef69fc4b
...
...
@@ -529,10 +529,11 @@ namespace NSDoctRenderer
if
(
js_func_get_file_s
->
IsFunction
())
{
v8
::
Handle
<
v8
::
Function
>
func_get_file_s
=
v8
::
Handle
<
v8
::
Function
>::
Cast
(
js_func_get_file_s
);
int
nArgument
=
pParams
->
m_nSaveToPDFParams
;
if
(
pParams
->
m_bIsOnlyOnePage
)
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
pParams
->
m_nSaveToPDFParams
)
;
else
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
0x0100
);
nArgument
|=
0x0100
;
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
nArgument
);
v8
::
Local
<
v8
::
Value
>
js_result2
=
func_get_file_s
->
Call
(
global_js
,
1
,
args
);
if
(
try_catch
.
HasCaught
())
...
...
DesktopEditor/graphics/MetafileToGraphicsRenderer.h
View file @
ef69fc4b
...
...
@@ -218,7 +218,7 @@ namespace NSOnlineOfficeBinToPdf
double
h
=
oInfo
.
arSizes
[
nPageIndex
].
height
;
double
dKoef1
=
nRasterW
/
w
;
double
dKoef2
=
nRaster
W
/
h
;
double
dKoef2
=
nRaster
H
/
h
;
if
(
dKoef1
>
dKoef2
)
dKoef1
=
dKoef2
;
...
...
PdfReader/PdfReader.cpp
View file @
ef69fc4b
...
...
@@ -288,8 +288,12 @@ namespace PdfReader
oFrame
.
put_Height
(
nHeight
);
oFrame
.
put_Stride
(
-
4
*
nWidth
);
oRenderer
.
CreateFromBgraFrame
(
&
oFrame
);
oRenderer
.
CreateFromBgraFrame
(
&
oFrame
);
oRenderer
.
SetSwapRGB
(
false
);
dWidth
*=
25.4
/
dDpiX
;
dHeight
*=
25.4
/
dDpiY
;
oRenderer
.
put_Width
(
dWidth
);
oRenderer
.
put_Height
(
dHeight
);
...
...
X2tConverter/src/ASCConverters.cpp
View file @
ef69fc4b
...
...
@@ -1812,7 +1812,7 @@ namespace NExtractTools
pReader
->
GetPageInfo
(
i
,
&
dWidth
,
&
dHeight
,
&
dPageDpiX
,
&
dPageDpiY
);
double
dKoef1
=
nRasterWCur
/
dWidth
;
double
dKoef2
=
nRaster
W
Cur
/
dHeight
;
double
dKoef2
=
nRaster
H
Cur
/
dHeight
;
if
(
dKoef1
>
dKoef2
)
dKoef1
=
dKoef2
;
...
...
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