Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
4bd417ec
Commit
4bd417ec
authored
Apr 08, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
округление при некоторых размерах - давало мутноту страницы
parent
b1b3279c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
28 deletions
+30
-28
word/Drawing/DrawingDocument.js
word/Drawing/DrawingDocument.js
+28
-26
word/Drawing/HtmlPage.js
word/Drawing/HtmlPage.js
+2
-2
No files found.
word/Drawing/DrawingDocument.js
View file @
4bd417ec
...
...
@@ -2734,8 +2734,10 @@ function CDrawingDocument()
var
page
=
this
.
m_arrPages
[
pageIndex
];
var
w
=
(
this
.
m_oWordControl
.
m_nZoomValue
*
g_dKoef_mm_to_pix
*
page
.
width_mm
/
100
)
>>
0
;
var
h
=
(
this
.
m_oWordControl
.
m_nZoomValue
*
g_dKoef_mm_to_pix
*
page
.
height_mm
/
100
)
>>
0
;
var
dKoef
=
(
this
.
m_oWordControl
.
m_nZoomValue
*
g_dKoef_mm_to_pix
/
100
);
var
w
=
(
page
.
width_mm
*
dKoef
+
0.5
)
>>
0
;
var
h
=
(
page
.
height_mm
*
dKoef
+
0.5
)
>>
0
;
if
(
this
.
m_oWordControl
.
bIsRetinaSupport
)
{
...
...
word/Drawing/HtmlPage.js
View file @
4bd417ec
...
...
@@ -3291,8 +3291,8 @@ function CEditorPage(api)
var
lStart
=
0
;
for
(
var
i
=
0
;
i
<
this
.
m_oDrawingDocument
.
m_lPagesCount
;
i
++
)
{
var
_pageWidth
=
parseInt
(
this
.
m_oDrawingDocument
.
m_arrPages
[
i
].
width_mm
*
dKoef
)
;
var
_pageHeight
=
parseInt
(
this
.
m_oDrawingDocument
.
m_arrPages
[
i
].
height_mm
*
dKoef
)
;
var
_pageWidth
=
(
this
.
m_oDrawingDocument
.
m_arrPages
[
i
].
width_mm
*
dKoef
+
0.5
)
>>
0
;
var
_pageHeight
=
(
this
.
m_oDrawingDocument
.
m_arrPages
[
i
].
height_mm
*
dKoef
+
0.5
)
>>
0
;
if
(
false
===
bIsFoundFirst
)
{
...
...
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