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
c69a6f32
Commit
c69a6f32
authored
May 05, 2016
by
Oleg Korshul
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
баги с падениями при открытии пдф
parent
9544f6ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
DesktopEditor/fontengine/FontManager.cpp
DesktopEditor/fontengine/FontManager.cpp
+3
-0
PdfReader/Src/Decrypt.cpp
PdfReader/Src/Decrypt.cpp
+2
-2
No files found.
DesktopEditor/fontengine/FontManager.cpp
View file @
c69a6f32
...
...
@@ -655,6 +655,9 @@ INT CFontManager::LoadFontFromFile(const std::wstring& sPath, const int& lFaceIn
CFontsCache
*
pCache
=
(
m_pOwnerCache
!=
NULL
)
?
m_pOwnerCache
:
m_pApplication
->
GetCache
();
m_pFont
=
pCache
->
LockFont
(
m_pLibrary
,
sPath
,
lFaceIndex
,
dSize
);
if
(
NULL
==
m_pFont
)
return
FALSE
;
m_pFont
->
m_pFontManager
=
this
;
m_pFont
->
SetSizeAndDpi
(
dSize
,
(
UINT
)
dDpiX
,
(
UINT
)
dDpiY
);
...
...
PdfReader/Src/Decrypt.cpp
View file @
c69a6f32
...
...
@@ -284,7 +284,7 @@ namespace PdfReader
}
AESDecryptBlock
(
&
m_oState
.
oAES
,
sIn
,
m_pStream
->
LookChar
()
==
EOF
);
}
if
(
m_oState
.
oAES
.
nBufferIndex
=
=
16
)
if
(
m_oState
.
oAES
.
nBufferIndex
>
=
16
)
{
nChar
=
EOF
;
}
...
...
@@ -815,4 +815,4 @@ namespace PdfReader
sDigest
[
14
]
=
(
unsigned
char
)((
d
>>=
8
)
&
0xff
);
sDigest
[
15
]
=
(
unsigned
char
)((
d
>>=
8
)
&
0xff
);
}
}
\ No newline at end of file
}
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