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
599ff507
Commit
599ff507
authored
Oct 12, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/ONLYOFFICE/core
into develop
parents
037e2efa
4fb3327e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
20 deletions
+38
-20
DesktopEditor/fontengine/fontconverter/FontFileTrueType.cpp
DesktopEditor/fontengine/fontconverter/FontFileTrueType.cpp
+7
-0
DesktopEditor/graphics/MetafileToRenderer.h
DesktopEditor/graphics/MetafileToRenderer.h
+5
-17
PdfWriter/PdfRenderer.cpp
PdfWriter/PdfRenderer.cpp
+13
-2
PdfWriter/Src/Types.h
PdfWriter/Src/Types.h
+13
-1
No files found.
DesktopEditor/fontengine/fontconverter/FontFileTrueType.cpp
View file @
599ff507
...
...
@@ -1969,6 +1969,13 @@ namespace NSFontConverter
{
nPos
=
m_pTables
[
nIndex
].
nOffset
+
2
;
m_nCMapsCount
=
GetU16BE
(
nPos
,
&
m_bSuccess
);
if
(
0
==
m_nCMapsCount
)
{
m_bSuccess
=
false
;
return
;
}
nPos
+=
2
;
if
(
!
m_bSuccess
)
return
;
...
...
DesktopEditor/graphics/MetafileToRenderer.h
View file @
599ff507
...
...
@@ -380,12 +380,13 @@ namespace NSOnlineOfficeBinToPdf
}
}
pRenderer
->
PenDashPattern
(
pDash
,
nCountDash
);
delete
[]
pDash
;
pRenderer
->
PenDashPattern
(
pDash
,
nCountDash
);
delete
[]
pDash
;
}
}
default:
pRenderer
->
put_PenDashStyle
(
nDashType
);
pRenderer
->
put_PenDashStyle
(
nDashType
);
break
;
}
break
;
...
...
@@ -518,20 +519,7 @@ namespace NSOnlineOfficeBinToPdf
for
(
LONG
lIndex
=
0
;
lIndex
<
lColorsCount
;
lIndex
++
)
{
pPositions
[
lIndex
]
=
ReadInt
(
current
,
curindex
)
/
100000.0
;
if
(
c_nPDFWriter
==
lRendererType
)
pColors
[
lIndex
]
=
ReadInt
(
current
,
curindex
);
else
{
BYTE
_b
=
*
current
++
;
BYTE
_g
=
*
current
++
;
BYTE
_r
=
*
current
++
;
BYTE
_a
=
*
current
++
;
curindex
+=
4
;
pColors
[
lIndex
]
=
((
_b
<<
24
)
&
0xFF000000
)
|
((
_g
<<
16
)
&
0xFF0000
)
|
((
_r
<<
8
)
&
0xFF00
)
|
_a
;
}
pColors
[
lIndex
]
=
ReadInt
(
current
,
curindex
);
}
pRenderer
->
put_BrushGradientColors
(
pColors
,
pPositions
,
lColorsCount
);
...
...
PdfWriter/PdfRenderer.cpp
View file @
599ff507
...
...
@@ -488,10 +488,21 @@ void CPdfRenderer::SetTempFolder(const std::wstring& wsPath)
NSDirectory
::
DeleteDirectory
(
m_wsTempFolder
);
int
nCounter
=
0
;
m_wsTempFolder
=
wsPath
+
L"
\\
PDF
\\
"
;
m_wsTempFolder
=
wsPath
;
int
nPathLen
=
(
int
)
m_wsTempFolder
.
length
();
if
(
nPathLen
>
0
)
{
const
wchar_t
*
pData
=
m_wsTempFolder
.
c_str
();
if
((
pData
[
nPathLen
-
1
]
!=
'/'
)
&&
(
pData
[
nPathLen
-
1
]
!=
'\\'
))
m_wsTempFolder
+=
L"/"
;
m_wsTempFolder
+=
L"PDF"
;
}
std
::
wstring
sTest
=
m_wsTempFolder
;
while
(
NSDirectory
::
Exists
(
m_wsTempFolder
))
{
m_wsTempFolder
=
wsPath
+
L"
\\
PDF_"
+
std
::
to_wstring
(
nCounter
)
+
L"
\\
"
;
m_wsTempFolder
=
sTest
+
L"/PDF_"
+
std
::
to_wstring
(
nCounter
)
;
nCounter
++
;
}
NSDirectory
::
CreateDirectory
(
m_wsTempFolder
);
...
...
PdfWriter/Src/Types.h
View file @
599ff507
...
...
@@ -195,12 +195,24 @@ namespace PdfWriter
if
(
m_pPattern
)
delete
[]
m_pPattern
;
}
CDashMode
(
const
CDashMode
&
oSrc
)
{
m_pPattern
=
NULL
;
Set
(
oSrc
.
m_pPattern
,
oSrc
.
m_unCount
,
oSrc
.
m_dPhase
);
}
CDashMode
&
operator
=
(
const
CDashMode
&
oSrc
)
{
m_pPattern
=
NULL
;
Set
(
oSrc
.
m_pPattern
,
oSrc
.
m_unCount
,
oSrc
.
m_dPhase
);
return
*
this
;
}
void
Set
(
const
double
*
pPattern
,
unsigned
int
unCount
,
double
dPhase
)
{
if
(
!
pPattern
||
!
unCount
)
return
;
if
(
m_
pPattern
)
if
(
m_pPattern
&&
m_pPattern
!=
pPattern
)
delete
[]
m_pPattern
;
m_pPattern
=
new
double
[
unCount
];
...
...
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