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
eb29cee9
Commit
eb29cee9
authored
Dec 23, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.2.3'
parents
13d57361
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 @
eb29cee9
...
@@ -529,10 +529,11 @@ namespace NSDoctRenderer
...
@@ -529,10 +529,11 @@ namespace NSDoctRenderer
if
(
js_func_get_file_s
->
IsFunction
())
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
);
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
)
if
(
pParams
->
m_bIsOnlyOnePage
)
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
pParams
->
m_nSaveToPDFParams
)
;
nArgument
|=
0x0100
;
else
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
nArgument
);
args
[
0
]
=
v8
::
Int32
::
New
(
isolate
,
0x0100
);
v8
::
Local
<
v8
::
Value
>
js_result2
=
func_get_file_s
->
Call
(
global_js
,
1
,
args
);
v8
::
Local
<
v8
::
Value
>
js_result2
=
func_get_file_s
->
Call
(
global_js
,
1
,
args
);
if
(
try_catch
.
HasCaught
())
if
(
try_catch
.
HasCaught
())
...
...
DesktopEditor/graphics/MetafileToGraphicsRenderer.h
View file @
eb29cee9
...
@@ -218,7 +218,7 @@ namespace NSOnlineOfficeBinToPdf
...
@@ -218,7 +218,7 @@ namespace NSOnlineOfficeBinToPdf
double
h
=
oInfo
.
arSizes
[
nPageIndex
].
height
;
double
h
=
oInfo
.
arSizes
[
nPageIndex
].
height
;
double
dKoef1
=
nRasterW
/
w
;
double
dKoef1
=
nRasterW
/
w
;
double
dKoef2
=
nRaster
W
/
h
;
double
dKoef2
=
nRaster
H
/
h
;
if
(
dKoef1
>
dKoef2
)
if
(
dKoef1
>
dKoef2
)
dKoef1
=
dKoef2
;
dKoef1
=
dKoef2
;
...
...
PdfReader/PdfReader.cpp
View file @
eb29cee9
...
@@ -288,8 +288,12 @@ namespace PdfReader
...
@@ -288,8 +288,12 @@ namespace PdfReader
oFrame
.
put_Height
(
nHeight
);
oFrame
.
put_Height
(
nHeight
);
oFrame
.
put_Stride
(
-
4
*
nWidth
);
oFrame
.
put_Stride
(
-
4
*
nWidth
);
oRenderer
.
CreateFromBgraFrame
(
&
oFrame
);
oRenderer
.
CreateFromBgraFrame
(
&
oFrame
);
oRenderer
.
SetSwapRGB
(
false
);
oRenderer
.
SetSwapRGB
(
false
);
dWidth
*=
25.4
/
dDpiX
;
dHeight
*=
25.4
/
dDpiY
;
oRenderer
.
put_Width
(
dWidth
);
oRenderer
.
put_Width
(
dWidth
);
oRenderer
.
put_Height
(
dHeight
);
oRenderer
.
put_Height
(
dHeight
);
...
...
X2tConverter/src/ASCConverters.cpp
View file @
eb29cee9
...
@@ -1796,7 +1796,7 @@ namespace NExtractTools
...
@@ -1796,7 +1796,7 @@ namespace NExtractTools
pReader
->
GetPageInfo
(
i
,
&
dWidth
,
&
dHeight
,
&
dPageDpiX
,
&
dPageDpiY
);
pReader
->
GetPageInfo
(
i
,
&
dWidth
,
&
dHeight
,
&
dPageDpiX
,
&
dPageDpiY
);
double
dKoef1
=
nRasterWCur
/
dWidth
;
double
dKoef1
=
nRasterWCur
/
dWidth
;
double
dKoef2
=
nRaster
W
Cur
/
dHeight
;
double
dKoef2
=
nRaster
H
Cur
/
dHeight
;
if
(
dKoef1
>
dKoef2
)
if
(
dKoef1
>
dKoef2
)
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