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
ecbb00a1
Commit
ecbb00a1
authored
8 years ago
by
ElenaSubbotina
Committed by
Alexander Trofimov
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader ...
parent
7b813670
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
+1
-1
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
+7
-8
No files found.
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
View file @
ecbb00a1
...
...
@@ -1259,7 +1259,7 @@ namespace DocFileFormat
{
//it's a bitmap image
BitmapBlip
*
bitBlip
=
static_cast
<
BitmapBlip
*>
(
RecordFactory
::
ReadRecord
(
&
reader
,
0
));
if
(
bitBlip
)
if
(
(
bitBlip
)
&&
(
bitBlip
->
m_pvBits
)
)
{
m_ctx
->
_docx
->
ImagesList
.
push_back
(
ImageFileStructure
(
GetTargetExt
(
oBlip
->
btWin32
),
vector
<
unsigned
char
>
(
bitBlip
->
m_pvBits
,
(
bitBlip
->
m_pvBits
+
bitBlip
->
pvBitsSize
)),
oBlip
->
btWin32
));
...
...
This diff is collapsed.
Click to expand it.
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
View file @
ecbb00a1
...
...
@@ -27,7 +27,7 @@ public:
{
unsigned
short
rdUShort
=
0
;
if
(
stream
!=
NULL
)
if
(
(
stream
!=
NULL
)
&&
(
position
+
2
<
stream
->
size
())
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)(
&
rdUShort
),
sizeof
(
rdUShort
));
...
...
@@ -42,7 +42,7 @@ public:
{
short
rdShort
=
0
;
if
(
stream
!=
NULL
)
if
(
(
stream
!=
NULL
)
&&
(
position
+
2
<
stream
->
size
())
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)(
&
rdShort
),
sizeof
(
rdShort
));
...
...
@@ -57,7 +57,7 @@ public:
{
int
rdInt
=
0
;
if
(
stream
!=
NULL
)
if
(
(
stream
!=
NULL
)
&&
(
position
+
4
<
stream
->
size
())
)
{
stream
->
seek
(
position
);
stream
->
read
(
(
unsigned
char
*
)
&
rdInt
,
sizeof
(
rdInt
)
);
...
...
@@ -72,7 +72,7 @@ public:
{
int
rdUInt
=
0
;
if
(
stream
!=
NULL
)
if
(
(
stream
!=
NULL
)
&&
(
position
+
4
<
stream
->
size
())
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)
&
rdUInt
,
sizeof
(
rdUInt
)
);
...
...
@@ -87,7 +87,7 @@ public:
{
unsigned
char
rdByte
=
0
;
if
(
this
->
stream
!=
NULL
)
if
(
(
stream
!=
NULL
)
&&
(
position
+
1
<
stream
->
size
())
)
{
stream
->
seek
(
position
);
stream
->
read
(
(
unsigned
char
*
)
&
rdByte
,
sizeof
(
rdByte
)
);
...
...
@@ -102,7 +102,7 @@ public:
{
unsigned
char
*
rdBytes
=
NULL
;
if
(
(
stream
!=
NULL
)
&&
(
count
>
0
)
)
if
(
(
stream
!=
NULL
)
&&
(
count
>
0
)
&&
(
position
+
count
<
stream
->
size
())
)
{
rdBytes
=
new
unsigned
char
[
count
];
...
...
@@ -221,7 +221,6 @@ public:
private:
POLE
::
uint64
position
;
//std::streampos position;
POLE
::
uint64
position
;
POLE
::
Stream
*
stream
;
};
This diff is collapsed.
Click to expand it.
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